-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.flake8
More file actions
46 lines (43 loc) · 1.64 KB
/
Copy path.flake8
File metadata and controls
46 lines (43 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[flake8]
# max_line_length = 79
# max-complexity = 10
doctests = true
# https://github.com/psf/black/blob/main/docs/guides/using_black_with_other_tools.md
# - E203: whitespace before ‘,’, ‘;’, or ‘:’
# - E701: multiple statements on one line (colon)
# - E704: multiple statements on one line (def)
# + W504: line break after binary operator
# https://www.pydocstyle.org/en/stable/error_codes.html
# - D105: undocumented-magic-method
# - D107: undocumented-public-init
# https://github.com/gforcada/flake8-builtins?tab=readme-ov-file#rules
# - A003: A class attribute is shadowing a Python builtin.
# - A005: A module is shadowing a Python builtin module (e.g: logging or socket)
# https://github.com/PyCQA/flake8-bugbear?tab=readme-ov-file#list-of-warnings
# + B950: (smart) Line too long
# https://github.com/orsinium-labs/flake8-todos
# - T003: add link on issue into TODO.
# https://github.com/plinss/flake8-noqa?tab=readme-ov-file#error-codes
# NQA102: "# noqa: X000" has no matching violations
# misc
# - I # flake8-import-order: not compatible with isort
# - SC # flake8-spellcheck: too aggressive
# - CNL # flake8-class-newline: incompatible with black
extend-ignore = E203,W503,D105,B019,SC
extend-select = W504
per-file-ignores =
tests/*: D
*/tests/*: D
s1etad/_s1utils.py: D102
s1etad/cli/main.py: NQA102
statistics = True
count = True
# extend-exclude = packagename/subpackage/*
# flake8-cognitive-complexity
# max-cognitive-complexity = 7 # default
max-cognitive-complexity = 12
# flake8-noqa
noqa-require-code = True
# flake8-spellcheck
dictionaries = en_US,python,technical,pandas
# spellcheck-allowlist-file = .spellcheck-allowlist