-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
100 lines (78 loc) · 1.52 KB
/
tox.ini
File metadata and controls
100 lines (78 loc) · 1.52 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
[tox]
skipsdist = True
envlist = coverage,check,docs,simple
[testenv]
basepython = python3.7
passenv=
TOXENV
CI
CI_*
CIRCLECI
CIRCLE_*
TRAVIS
TRAVIS_*
APPVEYOR
APPVEYOR_*
CODECOV_TOKEN
deps = -e.[dev]
[testenv:simple]
deps = {toxinidir}
commands =
mario eval 1
[testenv:test]
commands =
pytest --cov=mario --cov=tests {posargs}
[testenv:coverage]
commands =
python -m site
pytest --cov=mario --cov=tests {posargs}
coverage report -m
[testenv:check]
commands =
python setup.py sdist bdist_wheel
pylint src tests
mypy src tests
twine check dist/mario-*
black --check src/ tests/
docshtest README.rst
pre-commit run -a
[testenv:codecov]
skip_install=True
deps=
codecov
commands=
python -c 'import sys; print(sys.version)'
codecov
[testenv:doc]
deps =
-r docs/requirements.txt
commands =
{envbindir}/sphinx-apidoc -o docs/reference -f src
{envbindir}/sphinx-build -E -b html docs dist/docs
[testenv:bump]
deps =
bump2version
pre-commit
towncrier
passenv =
GIT_AUTHOR_NAME
GIT_AUTHOR_EMAIL
GIT_COMMITTER_NAME
GIT_COMMITTER_EMAIL
whitelist_externals =
git
bash
commands =
pre-commit install --install-hooks
pre-commit run -a
bash ci/bump.bash
[testenv:release]
deps =
twine
passenv =
TWINE_USERNAME
TWINE_PASSWORD
commands =
rm -rf dist
python setup.py sdist bdist_wheel
twine upload --skip-existing dist/*