-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathtox.ini
53 lines (43 loc) · 1.23 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
[tox]
envlist = blue,
pep8,
py38,
coverage-report
[testenv]
deps = -r{toxinidir}/requirements/tests
commands = coverage run -m pytest {posargs:tests}
[testenv:nocover]
deps = -r{toxinidir}/requirements/tests
commands = pytest {posargs:tests}
# --------------------------------------------------------------------
# Style
# --------------------------------------------------------------------
[flake8]
max-complexity = 10
import-order-style = google
application-import-names = token_bucket
exclude = .tox,.venv,dist,docs,*.egg,.git,_build,build
extend-ignore = E203
[testenv:blue]
skip_install = true
deps = blue
commands = blue --check .
[testenv:pep8]
skip_install = true
deps = flake8
flake8-quotes
flake8-import-order
commands = flake8 {posargs:.}
# --------------------------------------------------------------------
# Coverage
# --------------------------------------------------------------------
[testenv:coverage-report]
skip_install = true
commands =
coverage combine
coverage html -d .coverage_html
coverage report
# --------------------------------------------------------------------
# Documentation
# --------------------------------------------------------------------
# TODO