-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
58 lines (45 loc) · 916 Bytes
/
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
[tox]
envlist = py36, py37, py38, py39, lint, type-check
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39, lint, type-check
[testenv]
deps =
-r {toxinidir}/requirements.txt
-r {toxinidir}/tests/requirements.txt
setenv =
PATH = {toxworkdir}/bin{:}{env:PATH}
passenv =
_ANSIBLE_LINT_RULE_*
commands =
pytest
[testenv:type-check]
deps =
{[testenv]deps}
types-PyYAML
mypy
commands =
mypy rules
[testenv:lint]
commands =
flake8 --doctests rules tests
- pylint --disable=invalid-name,locally-disabled rules
[testenv:profile]
# It also requires graphviz (dot).
deps =
{[testenv]deps}
gprof2dot
pytest-profiling
commands =
pytest --profile --profile-svg
[testenv:dists]
deps =
wheel
commands =
python setup.py sdist
python setup.py bdist_wheel
- python setup.py bdist_rpm --source-only
# vim:sw=4:ts=4:et: