Skip to content

Commit c5cbd26

Browse files
akbakb
authored andcommitted
Use mario's tox
1 parent f8106b3 commit c5cbd26

File tree

1 file changed

+50
-52
lines changed

1 file changed

+50
-52
lines changed

tox.ini

Lines changed: 50 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,70 @@
1-
; a generative tox configuration, see: https://tox.readthedocs.io/en/latest/config.html#generative-envlist
2-
31
[tox]
4-
envlist =
5-
clean,
6-
check,
7-
docs,
8-
report
2+
skipsdist = True
3+
envlist = coverage,check,docs,simple
94

105
[testenv]
6+
117
basepython = python3.7
128

13-
setenv =
14-
PYTHONPATH={toxinidir}/tests
15-
PYTHONUNBUFFERED=yes
16-
passenv =
17-
*
18-
usedevelop = false
9+
passenv=
10+
TOXENV
11+
CI
12+
CI_*
13+
CIRCLECI
14+
CIRCLE_*
15+
TRAVIS
16+
TRAVIS_*
17+
APPVEYOR
18+
APPVEYOR_*
19+
CODECOV_TOKEN
20+
1921
deps =
20-
pytest
21-
pytest-travis-fold
22-
pytest-cov
22+
-r requirements.txt
23+
-r dev-requirements.txt
24+
-e {toxinidir}
25+
[testenv:simple]
2326
commands =
24-
{posargs:pytest --cov --cov-report=term-missing -vv tests}
27+
mario eval 1
2528

26-
[testenv:bootstrap]
27-
deps =
28-
jinja2
29-
matrix
30-
skip_install = true
29+
[testenv:test]
3130
commands =
32-
python ci/bootstrap.py
31+
pytest --cov=mario --cov=tests {posargs}
32+
33+
34+
[testenv:coverage]
35+
commands =
36+
{envbindir}/python -m pip install {toxinidir}
37+
python -m site
38+
pytest --cov=mario --cov=tests {posargs}
39+
coverage report -m
40+
cuv graph
3341

3442
[testenv:check]
3543
deps =
36-
-r requirements.txt
3744
-r dev-requirements.txt
38-
skip_install = true
45+
-e .
46+
pre-commit
3947
commands =
40-
python setup.py check --strict --metadata --restructuredtext
41-
check-manifest {toxinidir}
42-
isort --verbose --check-only --diff --recursive src tests setup.py
48+
./pycli init
49+
./pycli build
50+
twine check dist/mario-*
51+
black --check src/ tests/
52+
docshtest README.rst
53+
pre-commit run -a
54+
55+
[testenv:codecov]
56+
skip_install=True
57+
deps=
58+
codecov
59+
commands=
60+
python -c 'import sys; print(sys.version)'
61+
codecov --required
4362

44-
[testenv:spell]
45-
setenv =
46-
SPELLCHECK=1
47-
commands =
48-
sphinx-build -b spelling docs dist/docs
49-
skip_install = true
50-
deps =
51-
-r{toxinidir}/docs/requirements.txt
52-
sphinxcontrib-spelling
53-
pyenchant
5463

5564
[testenv:doc]
5665
deps =
57-
-r{toxinidir}/docs/requirements.txt
58-
commands =
59-
sphinx-build {posargs:-E} -b html docs dist/docs
60-
sphinx-build -b linkcheck docs dist/docs
66+
-r docs/requirements.txt
6167

62-
[testenv:report]
63-
deps = coverage
64-
skip_install = true
6568
commands =
66-
coverage report
67-
coverage html
68-
69-
[testenv:clean]
70-
commands = coverage erase
71-
skip_install = true
72-
deps = coverage
69+
{envbindir}/sphinx-apidoc -o docs/reference -f src
70+
{envbindir}/sphinx-build -E -b html docs dist/docs

0 commit comments

Comments
 (0)