Skip to content

Commit

Permalink
add flake8_length support
Browse files Browse the repository at this point in the history
  • Loading branch information
orsinium committed Jan 27, 2022
1 parent 178f1ab commit 623cab3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flake8_codes/_codes/_adhoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,14 @@ def extract_flake8_pytest() -> Dict[str, str]:
return {PYTEST_ERROR_CODE: PYTEST_ERROR_MESSAGE}


@registry.add
def extract_flake8_length() -> Dict[str, str]:
# external
from flake8_length._parser import Message

return {message.name: message.value for message in Message}


@registry.add
def extract_wemake_python_styleguide() -> Dict[str, str]:
# external
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ plugins = [
"flake8-future-import",
"flake8-import-order",
"flake8-isort",
"flake8-length",
"flake8-logging-format",
"flake8-mock",
"flake8-mutable",
Expand Down
1 change: 1 addition & 0 deletions tests/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
'flake8-expression-complexity',
'flake8-fixme',
'flake8-functions',
'flake8-length',
'flake8-logging-format',
'flake8-mutable',
'flake8-mypy',
Expand Down

0 comments on commit 623cab3

Please sign in to comment.