-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.cfg
89 lines (65 loc) · 1.55 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#
# Configuration for setuptools
#
[egg_info]
#tag_build = .dev
#tag_date = false
[sdist]
formats = zip
[bdist_wheel]
# If you set this to 1, make sure you have a proper Travis CI build matrix,
# and that your Trove classifiers state you support Python 2 and 3
universal = 1
[flake8]
ignore = E124,E128
max-line-length = 132
# py.test and Coverage
#
[tool:pytest]
norecursedirs = .* *.egg *.egg-info bin dist include lib local share static docs
python_files = tests/test_*.py
addopts = --spec
markers =
cli: command line interface integration tests.
integration: integration tests.
online: tests that need an Internet connection.
[run]
branch = True
omit = test_*.py
[report]
ignore_errors = True
# Regex 'find' matches for lines to exclude from consideration
exclude_lines =
pragma: *no-?cover
raise NotImplementedError
if __name__ == .__main__.:
except ImportError:
[xml]
output = build/coverage.xml
[html]
directory = build/coverage_html
# Tox configuration, for details see
#
# http://tox.testrun.org/
#
# $ . .env "--yes" "--develop"
# $ tox
[tool:tox]
envlist = py3, flake8
[testenv]
basepython =
{py3,flake8}: python3
deps =
-r./dev-requirements.txt
commands =
pytest -c {toxinidir}/setup.cfg --color=yes --cov=dependency_check \
--cov-config=setup.cfg --cov-report=term --cov-report=html --cov-report=xml \
{posargs}
[testenv:py3]
[testenv:flake8]
deps =
flake8==3.3.0
pep8==1.7.0
; for now just informational (exit-zero)
commands =
flake8 --count --statistics --exit-zero *.py