-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.cfg
65 lines (50 loc) · 1.11 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
[isort]
line_length = 88
profile = black
[flake8]
exclude =
.git
__pycache__
dist
build
max-line-length = 88
max-complexity = 9
per-file-ignores =
django_admin_display/__init__.py:B010
[coverage:run]
relative_files = True
branch = True
include = django_admin_display/*
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=django_admin_display
--cov-report term
norecursedirs = build dist
testpaths =
django_admin_display
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