-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cfg
More file actions
57 lines (46 loc) · 1.13 KB
/
setup.cfg
File metadata and controls
57 lines (46 loc) · 1.13 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
[pack-python]
packaging =
wheel
fpm-deb
[mypy]
packages = context_logger
strict = True
[flake8]
exclude = build,dist,.eggs,*.egg-info
max-line-length = 120
max-complexity = 10
count = True
statistics = True
show-source = True
per-file-ignores =
# F401: imported but unused
# F403: import * used; unable to detect undefined names
__init__.py: F401,F403
[tool:pytest]
addopts = --capture=no --verbose
python_files = *Test.py
python_classes = *Test
[coverage:run]
relative_files = true
branch = True
source = context_logger
[coverage:report]
; Regexes for lines to exclude from consideration
exclude_also =
; Don't complain about missing debug-only code:
def __repr__
if self\.debug
; Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
; Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
; Don't complain about abstract methods, they aren't run:
@(abc\.)?abstractmethod
ignore_errors = True
skip_empty = True
[coverage:html]
directory = coverage/html
[coverage:json]
output = coverage/coverage.json