-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.cfg
executable file
·64 lines (49 loc) · 1.05 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
[isort]
line_length = 88
known_project = exiffield
[flake8]
exclude =
.git
__pycache__
dist
build
ignore =
E501 # code is reformatted using black
max-line-length = 88
max-complexity = 9
[coverage:run]
branch = True
include = exiffield/*
omit =
*/tests/*
[coverage:report]
show_missing = True
exclude_lines =
pragma: no cover
# Don't complain about missing debug-only code:
def __unicode__
def __repr__
def __str__
# 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 __name__ == __main__:
# No need to check type checking imports
if TYPE_CHECKING:
[tool:pytest]
addopts =
--durations=10
--cov=exiffield
--cov-report term
norecursedirs = build dist
testpaths =
exiffield
tests
[mypy]
# Specify the target platform details in config, so your developers are
# free to run mypy on Windows, Linux, or macOS and get consistent
# results.
python_version = 3.6
platform = Linux
ignore_missing_imports = True