forked from pcah/python-clean-architecture
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
61 lines (54 loc) · 1.18 KB
/
tox.ini
File metadata and controls
61 lines (54 loc) · 1.18 KB
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
[tox]
envlist = py36, py37, flake8
[travis]
python =
3.6: py36
3.7: py37, flake8
[pytest]
python_files =
pca/**/tests/**/*.py
pca/**/tests/*.py
devops/**/tests/*.py
python_functions = test_*
# point this file as a source of coverage config
addopts = --cov --cov-config=tox.ini --cov-fail-under=90 --tb=short
[testenv]
passenv = TOXENV CI TRAVIS TRAVIS_*
deps=
-r{toxinidir}/devops/requirements/test.txt
commands=
py.test --basetemp={envtmpdir} {posargs}
[testenv:flake8]
deps = flake8
commands =
flake8 {toxinidir}
[flake8]
max-line-length = 99
exclude =
# git directory
.git,
# python artefacts
__pycache__,
# test artefacts
.tox,
# built artefacts
build,
dist,
.eggs,
# below are coverage options
[run]
omit = **/tests/*
source = pca
[report]
show_missing = true
skip_covered = true
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
# 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__.: