-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
48 lines (43 loc) · 950 Bytes
/
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
[tool:pytest]
testpaths = tests
addopts =
--strict-markers
-ra --showlocals
-p pytester
[flake8]
max-line-length = 80
max-complexity = 7
doctests = True
select =
# Style warnings
W,
# Style errors
E,
# Flakes
F,
# Bugs
B,
# Check first argument name of instance/class method
B902,
# Allow line length exceeding of 10% (need to disable E501)
B950,
# Complexity issues (need to set max-complexity)
C,
# Docstrings issues
D
ignore =
# Disabled in favour of B950
E501,
# Disabled as the constructor documentation is located in the class docstring
D107,
# Imperative mood is not mandatory
D401,
# Break before binary operators
W503
per-file-ignores =
# In tests:
# - documentation is not mandatory
# - complexity is not relevant
tests/*:D,C901
# In tasks, tasks documentation should not end with a dot
tasks.py:D400