-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.cfg
58 lines (49 loc) · 1.21 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
[tool:pytest]
DJANGO_SETTINGS_MODULE = tests.settings
python_files = tests.py test_*.py *_tests.py
[tool:isort]
known_first_party = galleryfield
src_paths = galleryfield,tests,demo,demo_custom
[flake8]
ignore = E126,E127,E128,E123,E226,E241,E242,E265,E402,W503
max-line-length = 85
exclude = demo/migrations,demo_custom/migrations,galleryfield/migrations,tests/migrations,.env,env,setup.py,docs,node_modules,build
[coverage:run]
source = .
branch=True
cover_pylib=False
omit =
*/env/*
*/.env/*
*/venv/*
*/.venv/*
*/virtualenv*/*
*/setuptools*/*
*/migrations/*
*/mdx_mathjax.py
setup.py
*/wsgi.py
*/asgi.py
*/tests/*
*/tests.py
*/manage.py
*/settings.py
[coverage:report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
if self.debug
if settings.Debug
if debug
debug_print
# 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__.:
# mypy import
if TYPE_CHECKING:
ignore_errors = True