-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathtox.ini
More file actions
44 lines (38 loc) · 1013 Bytes
/
tox.ini
File metadata and controls
44 lines (38 loc) · 1013 Bytes
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
[tox]
envlist = py27, py35, py36, py37, py38, py39, py310, pypy, flake8, docs
skip_missing_interpreters = True
[testenv]
basepython =
py27: python2.7
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
pypy: pypy
setenv = PY_IGNORE_IMPORTMISMATCH=1
deps = -r{toxinidir}/_python_utils_tests/requirements.txt
commands = py.test --basetemp="{envtmpdir}" --confcutdir=.. {posargs} python_utils _python_utils_tests
[testenv:flake8]
basepython = python3
deps = flake8
commands = flake8 python_utils {posargs}
[testenv:docs]
basepython = python3
whitelist_externals =
rm
cd
mkdir
commands =
rm -f docs/project_name.rst
rm -f docs/modules.rst
mkdir -p docs/_static
sphinx-apidoc -o docs/ python_utils
rm -f docs/modules.rst
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html {posargs}
deps = -r{toxinidir}/docs/requirements.txt
[flake8]
ignore = W391, W504, E741
exclude =
docs