-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
81 lines (71 loc) · 2.09 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
[flake8]
ignore =
# flake8-annotations
ANN002, # Missing type annotation for *args
ANN003, # Missing type annotation for **kwargs
ANN101, # Missing type annotation for self in method
ANN102, # Missing type annotation for cls in method
ANN204, # Missing return type annotation for special method
# flake8-bugbear
B006, # Do not use mutable data structures for argument defaults
# flake8-commas
C812, # Missing trailing comma
# flake8-functions
CFQ001, # Function length (default max length is 100)
CFQ003, # Function is not pure (reproducible)
# darlingt
DAR103, # Parameter type mismatch: ~arg2: expected str but was str, optional
# pydocstyle
D212, # Multi-line docstring summary should start at the first line
E203, # Whitespace before ':'
E741, # Ambiguous variable name 'l'
# lambdas
E731, # Do not assign a lambda expression, use a def
# pydocstyle
D107, # Missing docstring in __init__
D200, # One-line docstring should fit on one line with quotes
# flake8-quotes
Q000, # Remove bad quotes
# pycodestyle
W503 # Line break before binary operator
# In tests ignore:
# D - docstrings
# ANN201 - Missing return type annotation for public function
# S101 - Use of assert detected
per-file-ignores =
*/tests/*:D,
ANN201,
S101
exclude =
.git
__pycache__
.venv
.eggs
*.egg
__init__.py
max-line-length = 88
# darglint settings
docstring_style = google
strictness = long
# flake8-docstrings settings
docstring-convention = google
# pydocstyle settings
convention = google
[tool:pytest]
addopts = -ra --import-mode=importlib --cov --cov-config=setup.cfg --cov-report=term-missing
minversion = 6.0
norecursedirs = *.egg .eggs dist build docs .tox .git __pycache__
python_files = "test_*.py"
testpaths =
src
[coverage:run]
source =
src
omit =
*/__init__.py
[coverage:report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.: