-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
51 lines (43 loc) · 1.46 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
[tool:pytest]
junit_family = xunit1
addopts = -ra -vl
--junitxml=test-results/$TOX_ENVNAME/junit.xml
--cov-config setup.cfg
--cov=josh_train
--cov-report html:test-results/coverage/cov_html
--cov-report xml:test-results/coverage/cov.xml
--cov-report term
--html=test-results/$TOX_ENVNAME/report.html
--self-contained-html
markers =
integration: mark a test as integration
unit: mark a test as a unit test
slow: mark a test as being slow
notdev: mark a test as needing additional credentials or resources than most dev machines
pinned: mark a test as potentially breaking if a particular dataset changes
testpaths = test
norecursedirs = .git test/helpers test/test-data test/test-cases .toxenv .toxenv36 .toxenv37 *site-packages*
[flake8]
max-line-length = 120
ignore = W503 W504
per-file-ignores =
__init__.py:F401,F403
[coverage:report]
# Regexes for lines to exclude from consideration
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
# 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__.:
[coverage:html]
directory = test-results/$TOX_ENVNAME/coverage/cov
[coverage:paths]
source =
josh_train/