-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
83 lines (66 loc) · 1.71 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
82
83
[pack-python]
default = dh-virtualenv
packaging =
wheel
dh-virtualenv
dh-virtualenv = -s service/wifi-manager.service
[mypy]
packages = bin,wifi_utility,wifi_event,wifi_wpa,wifi_service,wifi_manager
strict = True
disallow_subclassing_any = False
disallow_untyped_decorators = False
[mypy-dbus.*]
ignore_missing_imports = True
[mypy-_dbus_glib_bindings]
ignore_missing_imports = True
[mypy-gi.*]
ignore_missing_imports = True
[mypy-netifaces]
ignore_missing_imports = True
[mypy-waitress.server]
ignore_missing_imports = True
[mypy-ssdpy]
ignore_missing_imports = True
[flake8]
exclude = debian,build,dist
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 = wifi_utility,wifi_event,wifi_wpa,wifi_service,wifi_manager
omit =
wifi_utility/platformAccess.py
wifi_utility/reusableTimer.py
wifi_wpa/wpaDbus.py
[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