-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
67 lines (63 loc) · 1.28 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
[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,
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
exclude =
node_modules,
migrations,
scripts,
.venv,
__init__.py