File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[flake8]
2+ min_python_version = 3.7.0
23max-line-length = 88
3- ignore = E501, E203, W503
4+ ban-relative-imports = true
5+ # flake8-use-fstring: https://github.com/MichaelKim0407/flake8-use-fstring#--percent-greedy-and---format-greedy
6+ format-greedy = 1
7+ inline-quotes = double
8+ # Allow omission of a return type hint for __init__ if at least one argument is annotated
9+ # used by flake8-annotations
10+ mypy-init-return = true
11+ enable-extensions = TC, TC1
12+ type-checking-exempt-modules = typing, typing-extensions
13+ eradicate-whitelist-extend = ^-.*;
14+ extend-ignore =
15+ # E203: Whitespace before ':' (pycqa/pycodestyle#373)
16+ E203,
17+ # SIM106: Handle error-cases first
18+ SIM106,
19+ # ANN101: Missing type annotation for self in method
20+ ANN101,
21+ # ANN102: Missing type annotation for cls in classmethod
22+ ANN102,
423per-file-ignores =
5- __init__.py:F401
6- exclude =
7- .git
8- __pycache__
9- setup.py
10- build
11- dist
12- releases
13- .venv
14- .tox
15- .mypy_cache
16- .pytest_cache
17- .vscode
18- .github
19- tests/fixtures/
24+ # F401: Module imported by unused (non-implicit modules)
25+ # TC002: Move third-party import '...' into a type-checking block
26+ __init__.py:F401,TC002,
27+ # ANN201: Missing return type annotation for public function
28+ tests/test_*:ANN201
29+ tests/**/test_*:ANN201
30+ extend-exclude =
31+ # External to the project's coding standards:
32+ tests/fixtures/*,
33+ tests/**/fixtures/*,
You can’t perform that action at this time.
0 commit comments