-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
86 lines (81 loc) · 1.95 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[isort]
line_length=79
multi_line_output=3
known_django=django
known_drf=rest_framework
known_apps=apps
skip=
migrations,
_tmp,src,
scripts,
.venv,
node_modules,
config
sections=
FUTURE,
STDLIB,
DJANGO,
DRF,
THIRDPARTY,
FIRSTPARTY,
APPS,
LOCALFOLDER
include_trailing_comma=True
default_section=THIRDPARTY
[tool:pytest]
# --reuse-db:
# allow saving DB tables between test sessions (like --keepdb)
# --capture=no
# allow use of ipdb during tests
# --ff
# run last failed tests first
addopts =
--reuse-db
--capture=no
--ff
# skip all files inside following dirs
norecursedirs = _tmp node_modules src
# set Django settings
DJANGO_SETTINGS_MODULE = config.settings.local
[flake8]
# https://www.flake8rules.com/
ignore =
# https://www.flake8rules.com/rules/E126.html
E126,
# https://www.flake8rules.com/rules/W503.html
W503,
# https://www.flake8rules.com/rules/W504.html
W504,
# https://github.com/m-burst/flake8-pytest-style/blob/master/docs/rules/PT004.md
PT004,
# Missing docstring in public module
D100,
# Missing docstring in public method
D102,
# Missing docstring in public function
D103,
# Missing docstring in magic method
D105,
# Missing docstring in public nested
D106,
# Missing docstring in __init__
D107,
# Manually surrounded by quotes, consider using the `!r` conversion flag
B028
inline-quotes=double
statistics = True
count = True
max-complexity = 10
pytest-fixture-no-parentheses = True
pytest-parametrize-names-type = list
pytest-parametrize-values-type = list
pytest-parametrize-values-row-type = list
# F401 https://www.flake8rules.com/rules/F401.html
# F403 https://www.flake8rules.com/rules/F403.html
# F405 https://www.flake8rules.com/rules/F405.html
# E501 https://www.flake8rules.com/rules/E501.html
per-file-ignores =
config/settings/config.py:F401,F403,F405
config/settings/local.template.py:F403,F405
config/settings/common/authentication.py:E501
config/settings/common/drf.py:E501