-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
59 lines (54 loc) · 1.48 KB
/
tox.ini
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
[tox]
envlist = py{35,36,37},flake8,coverage,docs,benchmark
[testenv:py35]
commands = python setup.py test
deps = -rrequirements-tests.txt
[testenv:py36]
commands = python setup.py test
deps = -rrequirements-tests.txt
[testenv:py37]
commands = python setup.py test
deps = -rrequirements-tests.txt
[testenv:flake8]
skip_install = true
max-complexity = 10
commands = flake8 --ignore=D400,D205,I201,N812,D401,D413,D208 qacode/ tests/
deps = -rrequirements-flake.txt
exclude =
.git,
__pycache__,
docs/source/conf.py,
old,
build,
dist,
logs,
.vscode,
.eggs,
.cache
[testenv:benchmark]
description = Environment to generate benchmark image reports
py.test test/002_benchmarks --benchmark-histogram=tests/reports/benchmarks/benchmark.svg
deps = -rrequirements-tests.txt
[testenv:coverage]
description = Environment to generate coverage reports
commands =
py.test --deselect="tests/002_benchmarks" --cov=qacode tests/ --cov-report html:tests/reports/coverage/ --cov-report xml:tests/reports/coverage.xml --cov-report term
deps = -rrequirements-tests.txt
exclude =
.git,
__pycache__,
docs/source/conf.py,
old,
build,
dist,
logs,
.vscode,
.eggs,
.cache
[testenv:docs]
commands =
python setup.py sdist
check-manifest --ignore tox.ini,tests*,docs*,source-docs*
# twine check dist/*
sphinx-build -M html source-docs/source docs
deps = -rrequirements-docs.txt