-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.cfg
41 lines (37 loc) · 986 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
# coverage.py
[coverage:run]
branch = true
source = sendoff
omit = sendoff/tests/*
[coverage:report]
exclude_lines =
pragma: no cover
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
# flake8
[flake8]
exclude = .git,__pycache__,doc/*,build,dist,.tox
extend_ignore =
W503 # Line break occurred after a binary operator (opposite of W504)
D107 # Missing docstring in __init__
D301 # Use r""" if any backslashes in a docstring
max-complexity = 12
max-line-length = 88
per-file-ignores =
sendoff/tests/*: DAR
[mypy]
follow_imports = silent
strict_optional = True
warn_redundant_casts = True
warn_unused_ignores = True
disallow_any_generics = True
check_untyped_defs = True
no_implicit_reexport = True
disallow_untyped_defs = True
ignore_missing_imports = True
strict = True
# pytest
[tool:pytest]
xfail_strict = true
addopts = -ra -vv -s --xdoctest --cov=sendoff --cov-config=setup.cfg --cov-report=term-missing --cov-report=html