-
Notifications
You must be signed in to change notification settings - Fork 98
/
tox.ini
48 lines (40 loc) · 1.05 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
[tox]
envlist = docs, py38, py39, py310, py311, py312, flake8
[travis]
python =
3.8: py38, flake8
3.9: py39, flake8
3.10: py310, flake8
3.11: py311, flake8
3.12: py312, flake8
[testenv:flake8]
basepython=python
deps=flake8
commands=flake8 --ignore=E501 spade
[testenv:docs]
basepython=python
changedir=docs
deps=sphinx
setenv =
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
commands=
pip install -r{toxinidir}/requirements_dev.txt
pip install -r{toxinidir}/requirements.txt
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv]
setenv =
PYTHONPATH = {toxinidir}
passenv =
TRAVIS
TRAVIS_BRANCH
TRAVIS_JOB_ID
deps =
-r{toxinidir}/requirements_dev.txt
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following lines:
-r{toxinidir}/requirements.txt
commands =
pip install -U pip
pip install -r{toxinidir}/requirements_dev.txt -r{toxinidir}/requirements.txt
pytest --basetemp={envtmpdir} --cov=spade