Skip to content

Commit

Permalink
chore: ignore cls type annotations on linter
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcavazos authored Aug 20, 2024
1 parent 5fdfd82 commit ec9f664
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions noxfile-template.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,21 +124,24 @@ def _determine_local_import_names(start_dir: str) -> list[str]:
# Linting with flake8.
#
# We ignore the following rules:
# ANN101: missing type annotation for self in method
# ANN101: missing type annotation for `self` in method
# ANN102: missing type annotation for `cls` in method
# E203: whitespace before ‘:’
# E266: too many leading ‘#’ for block comment
# E501: line too long
# I202: Additional newline in a section of imports
#
# We also need to specify the rules which are ignored by default:
# ['E226', 'W504', 'E126', 'E123', 'W503', 'E24', 'E704', 'E121']
#
# For more information see: https://pypi.org/project/flake8-annotations
FLAKE8_COMMON_ARGS = [
"--show-source",
"--builtin=gettext",
"--max-complexity=20",
"--import-order-style=google",
"--exclude=.nox,.cache,env,lib,generated_pb2,*_pb2.py,*_pb2_grpc.py",
"--ignore=ANN101,E121,E123,E126,E203,E226,E24,E266,E501,E704,W503,W504,I202",
"--ignore=ANN101,ANN102,E121,E123,E126,E203,E226,E24,E266,E501,E704,W503,W504,I202",
"--max-line-length=88",
]

Expand Down

0 comments on commit ec9f664

Please sign in to comment.