-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
44 lines (38 loc) · 1 KB
/
setup.cfg
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
[coverage:run]
branch = True
[flake8]
accept-encodings = utf-8
max-complexity = 5
statistics = False
max-line-length = 80
doctests = True
enable-extensions = G
isort-show-traceback = True
exclude =
# there is no need to lint the migrations
*/migrations/*.py
# clean default ignore list
ignore =
D100, D101, D104, D106,
# it is ok to skip the object baseclass Meta
WPS306
per-file-ignores =
# it is possibble to have prints in scripts
# task_manager/*.py: WPS421
task_manager/settings.py: WPS226, WPS407
# Sure, we can have many asserts and variables in tests
*/tests.py: S101, WPS210, WPS218
# it's ok to have some magic numbers in models
*/models.py: WPS432
[tool:pytest]
norecursedirs = __pycache__
addopts = --strict-markers
python_files = tests.py
DJANGO_SETTINGS_MODULE = task_manager.settings
[isort]
# See https://github.com/timothycrosley/isort#multi-line-output-modes
multi_line_output = 3
include_trailing_comma = true
default_section = FIRSTPARTY
# Should be: 80 - 1
line_length = 79