Skip to content

Commit

Permalink
metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
orsinium committed Jan 14, 2021
1 parent c1c76c4 commit a5dc3f0
Show file tree
Hide file tree
Showing 3 changed files with 140 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# flake8-codes

CLI tool to introspect flake8 plugins and their codes.

**Input**: plugin name (`pycodestyle`), error code (`W605`), or code prefix (`W6`).

**Output**: plugin name, error code, error message.

Only plugins installed in the same environment are inspected.

## Installation

```bash
python3 -m pip install -U --user flake8-codes
```

## Example

```bash
$ python3 -m flake8_codes W6
pycodestyle | W601 | .has_key() is deprecated, use 'in'
pycodestyle | W602 | deprecated form of raising exception
pycodestyle | W603 | '<>' is deprecated, use '!='
pycodestyle | W604 | backticks are deprecated, use 'repr()'
pycodestyle | W605 | invalid escape sequence '\%s'
pycodestyle | W606 | 'async' and 'await' are reserved keywords starting with Python 3.7
```
5 changes: 5 additions & 0 deletions flake8_codes/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""
CLI tool to introspect flake8 plugins and their codes.
"""

__version__ = '0.1.0'
108 changes: 108 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
[build-system]
requires = ["flit_core >=2,<4"]
build-backend = "flit_core.buildapi"

[tool.dephell.main]
from = {format = "poetry", path = "pyproject.toml"}
to = {format = "setuppy", path = "setup.py"}
tag = "v."


[tool.isort]
line_length = 90
combine_as_imports = true
balanced_wrapping = true
lines_after_imports = 2
not_skip = "__init__.py"
multi_line_output = 5
include_trailing_comma = true

import_heading_stdlib = "built-in"
import_heading_thirdparty = "external"
import_heading_firstparty = "project"
import_heading_localfolder = "app"


[tool.flit.metadata]
module = "flake8_codes"
license = "MIT"
author = "Gram"
author-email = "gram@orsinium.dev"
home-page = "https://github.com/orsinium-labs/flake8-codes"
description-file = "README.md"
requires-python = ">=3.6"
keywords = "flake8,plugins,codes,introspection,linter"
requires = ["flake8"]

classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Software Development :: Quality Assurance",
]

[tool.flit.metadata.requires-extra]
plugins = [
"dlint",
"flake8-2020",
"flake8-aaa",
"flake8-absolute-import",
"flake8-alfred",
"flake8-annotations-complexity",
"flake8-bandit",
"flake8-black",
"flake8-broken-line",
"flake8-bugbear",
"flake8-builtins",
"flake8-coding",
"flake8-cognitive-complexity",
"flake8-commas",
"flake8-comprehensions",
"flake8-debugger",
"flake8-django",
"flake8-docstrings",
"flake8-eradicate",
"flake8-executable",
"flake8-expression-complexity",
"flake8-fixme",
"flake8-functions",
"flake8-future-import",
"flake8-import-order",
"flake8-isort",
"flake8-logging-format",
"flake8-mock",
"flake8-mutable",
"flake8-mypy",
"flake8-pep3101",
"flake8-pie",
"flake8-print",
"flake8-printf-formatting",
"flake8-pyi",
"flake8-pytest-style",
"flake8-pytest",
"flake8-quotes",
"flake8-requirements",
"flake8-rst-docstrings",
"flake8-scrapy",
"flake8-spellcheck",
"flake8-sql",
"flake8-strict",
"flake8-string-format",
"flake8-tidy-imports",
"flake8-todo",
"flake8-use-fstring",
"flake8-variables-names",
"mccabe",
"pandas-vet",
"pep8-naming",
"pylint",
"wemake-python-styleguide",
]
dev = [
"isort",
"mypy",
"pytest",
]

0 comments on commit a5dc3f0

Please sign in to comment.