-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
38 lines (37 loc) · 977 Bytes
/
pyproject.toml
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
[tool.flake8]
enable-extensions = ['G'] # Enables flake8-logging-format
exclude = ".git,*/migrations/*,*/static/CACHE/*,docs,node_modules,*venv*"
extend-ignore = [
# (flake8-builtins) builtin names used as class attributes (e.g. `id`, `type`, `help`)
"A003",
# (flake8) Black incompatibility - see https://github.com/PyCQA/pycodestyle/issues/373
"E203",
# (flake8-logging-format) false-positives for anything calling `.warn()`
"G010",
# (flake8-fixme) "hack" comments
"T103",
# we are already covered by F401, thanks.
"F811"
]
max-complexity = 20
max-line-length = 120
# flake8-import-order
application-import-names = [
'genpw',
]
import-order-style = 'pycharm'
# pep8-naming
ignore-names = [
# defaults
'setUp',
'tearDown',
'setUpClass',
'tearDownClass',
'setUpTestData',
'failureException',
'longMessage',
'maxDiff',
# custom (ideally, we'd want "assert*")
]
[tool.black]
line-length = 120