forked from CS-SI/pytest-executable
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
111 lines (99 loc) · 2.58 KB
/
tox.ini
File metadata and controls
111 lines (99 loc) · 2.58 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist =
py{36,37,38,39}-pytest{43,46,50,54,60}-pyyaml{3,5}-jsonschema{2,3}-jinja{27,211}
style
check
coverage
doc
doc-checklinks
[testenv]
deps =
delta==0.4.*
jinja27: jinja2==2.7.*
jinja211: jinja2==2.11.*
jsonschema2: jsonschema==2.*
jsonschema3: jsonschema==3.*
pyyaml3: pyyaml==3.*
# there is no pyyaml 4 stable release
pyyaml5: pyyaml==5.*
pytest43: pytest==4.3.*
pytest44: pytest==4.4.*
pytest45: pytest==4.5.*
pytest46: pytest==4.6.*
pytest50: pytest==5.0.*
pytest51: pytest==5.1.*
pytest52: pytest==5.2.*
pytest53: pytest==5.3.*
pytest54: pytest==5.4.*
pytest60: pytest==6.0.*
commands =
pytest {posargs}
[testenv:dev]
basepython = python3.7
deps = -rrequirements-dev.txt
usedevelop = true
commands =
[testenv:doc]
basepython = {[testenv:dev]basepython}
deps = -r{toxinidir}/doc/requirements.txt
usedevelop = true
commands =
sphinx-build {posargs:-E} -b html doc dist/doc
[testenv:doc-checklinks]
basepython = {[testenv:dev]basepython}
deps = -r{toxinidir}/doc/requirements.txt
usedevelop = true
commands =
sphinx-build -b linkcheck doc dist/doc-checklinks
[testenv:doc-spell]
basepython = {[testenv:dev]basepython}
setenv =
SPELLCHECK=1
usedevelop = false
deps =
-r{toxinidir}/doc/requirements.txt
sphinxcontrib-spelling
pyenchant
commands =
sphinx-build -b spelling doc dist/doc
[testenv:style]
basepython = {[testenv:dev]basepython}
deps = {[testenv:dev]deps}
skip_install = true
commands =
isort --recursive --apply src tests setup.py report-conf
black -t py37 --exclude _version.py src tests setup.py report-conf
[testenv:check]
basepython = {[testenv:dev]basepython}
deps = {[testenv:dev]deps}
skip_install = true
commands =
flake8 src tests setup.py
mypy
[testenv:coverage]
basepython = {[testenv:dev]basepython}
deps =
pytest-cov<2.10
commands =
pytest --cov pytest_executable --cov-report html --cov-config setup.cfg {posargs}
coverage report
[testenv:check-dist]
basepython = {[testenv:dev]basepython}
deps = {[testenv:dev]deps}
commands =
twine check {toxworkdir}/dist/*
python setup.py check --metadata
[testenv:test-pypi]
basepython = {[testenv:dev]basepython}
skip_install = true
deps =
pytest-executable
commands =
pytest
[travis]
python =
3.7: py37, style, check, coverage, doc