| 1 |
[flake8] |
| 2 |
# max_line_length = 79 |
| 3 |
# max-complexity = 10 |
| 4 |
doctests = true |
| 5 |
# https://github.com/psf/black/blob/main/docs/guides/using_black_with_other_tools.md |
| 6 |
extend-ignore = E203,E501,E701,W503,SC,CNL |
| 7 |
# extend-ignore = I # flake8-import-order: not compatible with isort |
| 8 |
# extend-ignore = SC # flake8-spellcheck: too aggressive |
| 9 |
# extend-ignore = CNL # flake8-class-newline: incompatible with black |
| 10 |
# extend-ignore = A003,A005 # Python builtin is shadowed by class attribute / module |
| 11 |
# https://docs.astral.sh/ruff/rules/#pydocstyle-d |
| 12 |
# extend-ignore = D105 # undocumented-magic-method |
| 13 |
# extend-ignore = D107 # undocumented-public-init |
| 14 |
extend-select = W504,B950 |
| 15 |
per-file-ignores = |
| 16 |
*/tests/test_*.py: D,T003 |
| 17 |
*/tests/data/*.py: D,T003,F821 |
| 18 |
bpack/utils.py: D103 |
| 19 |
bpack/codecs.py: A005 |
| 20 |
bpack/typing.py: A005 |
| 21 |
bpack/tests/test_future_annotations.py: D,T003,NQA102 |
| 22 |
statistics = True |
| 23 |
count = True |
| 24 |
extend-exclude = examples/* |
| 25 |
|
| 26 |
# flake8-cognitive-complexity |
| 27 |
# max-cognitive-complexity = 7 # default |
| 28 |
max-cognitive-complexity = 12 |
| 29 |
|
| 30 |
# flake8-noqa |
| 31 |
noqa-require-code = True |
| 32 |
|
| 33 |
# flake8-spellcheck |
| 34 |
dictionaries = en_US,python,technical,pandas |
| 35 |
# spellcheck-allowlist-file = .spellcheck-allowlist |