-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cfg
More file actions
86 lines (81 loc) · 1.89 KB
/
setup.cfg
File metadata and controls
86 lines (81 loc) · 1.89 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
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
[flake8]
accept-encodings = utf-8
max-complexity = 6
max-local-variables = 7
max-string-usages = 5
statistics = False
max-line-length = 80
doctests = True
enable-extensions = G
isort-show-traceback = True
exclude =
.git
__pycache__
migrations
.venv
.eggs
*.egg
tests
# Ignore some checks for Django's standard files:
per-file-ignores =
task_manager/*.py manage.py:
# Found line with high Jones Complexity
WPS221,
# Found string constant over-use
WPS226,
# Found mutable module constant
WPS407,
# Found nested import
WPS433,
# Line too long
E501,
# Sorry, it's Django
ignore =
# Coding magic comment not found
C101,
# Missing parameter(s) in Docstring
DAR101,
# Missing "Returns" in Docstring
DAR201,
# Missing "Yields" in Docstring
DAR301,
# Missing exception(s) in Raises section
DAR401,
# Missing docstring in public module
D100,
# Missing docstring in public class
D101,
# Missing docstring in public method
D102,
# Missing docstring in public function
D103,
# Missing docstring in public package
D104,
# Missing docstring in public nested class
D106,
# Missing docstring in magic method
D105,
# Remove bad quotes
Q000,
# Found `f` string
WPS305,
# Found `__init__.py` module with logic
WPS412,
# Line break before binary operator
W503,
# Found implicit string concatenation
WPS326
# Local folder import
WPS300
[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
[tool:pytest]
DJANGO_SETTINGS_MODULE = task_manager.settings
python_files = tests.py test_*.py *_tests.py
norecursedirs = __pycache__ .venv *.egg .github
addopts = --strict-markers