-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtox.ini
64 lines (49 loc) · 1.01 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
60
61
62
63
64
[tox]
envlist=
flake8,
check_rst,
py3
[flake8]
max-line-length=100
[base]
deps = -r{toxinidir}/requirements-dev.txt
[testenv]
commands=
py.test -rw {posargs:policyd_rate_limit/tests/}
coverage report
[testenv:flake8]
basepython=python3
deps=flake8
skip_install=True
commands=
flake8 {toxinidir}/policyd_rate_limit {toxinidir}/policyd-rate-limit
[testenv:check_rst]
basepython=python3
deps=
docutils
Pygments
skip_install=True
commands=
rst2html.py --strict {toxinidir}/README.rst /dev/null
[testenv:py3]
basepython=python3
deps = {[base]deps}
[testenv:py39]
basepython=python3.9
deps = {[base]deps}
[testenv:coverage]
basepython=python3
passenv=
COVERAGE_TOKEN
CI_BUILD_REF_NAME
TRAVIS_BRANCH
TRAVIS_PULL_REQUEST
deps={[base]deps}
skip_install=True
commands=
py.test -rw {posargs:policyd_rate_limit/tests/}
coverage report
coverage html
{toxinidir}/.update_coverage "{toxinidir}" "policyd-rate-limit"
allowlist_externals=
{toxinidir}/.update_coverage