-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (43 loc) · 1.3 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
# Tox (http://tox.testrun.org/) 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 = py37,py38,py39,flake8,pylint,docs,check-manifest,checkreadme
[testenv]
commands = py.test --cov={envsitepackagesdir}/stringtopy -s {posargs}
basepython =
py37: {env:TOXPYTHON:python3.7}
py38: {env:TOXPYTHON:python3.8}
py39: {env:TOXPYTHON:python3.9}
flake8: {env:TOXPYTHON:python3}
pylint: {env:TOXPYTHON:python3}
docs: {env:TOXPYTHON:python3}
check-manifest: {env:TOXPYTHON:python3}
checkreadme: {env:TOXPYTHON:python3}
deps =
-rtest-requirements.txt
[testenv:docs]
changedir=docs
deps=-rdoc-requirements.txt
commands=
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:flake8]
deps=flake8
commands=
flake8 --exclude={envsitepackagesdir}/stringtopy/_version.py {envsitepackagesdir}/stringtopy
[testenv:pylint]
deps=
-r pylint-requirements.txt
commands=
pylint {envsitepackagesdir}/stringtopy
[testenv:check-manifest]
deps=check-manifest
setenv =
CHECK_MANIFEST=true
commands=
check-manifest
[testenv:check-readme]
deps=readme_renderer
commands=
python setup.py check -s -r