-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
37 lines (33 loc) · 869 Bytes
/
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
[tox]
envlist = pep8,docs,py36,py37,py38,py39
skip_missing_interpreters = true
skipsdist = true
requires = tox-conda
[testenv]
setenv =
PYTHONPATH = {toxinidir}
distribute = False
usedevelop = True
install_command = python3 -m pip install {opts} {packages}
conda_deps =
pytest
pytest-cookies
setuptools_scm
conda_channels =
conda-forge
deps = -Ur{toxinidir}/requirements-dev.txt
-Ur{toxinidir}/requirements.txt
commands =
pip install -U pip
pytest {posargs} tests/
[testenv:docs]
basepython = python
changedir = docs
deps = sphinx
sphinx-rtd-theme
commands = sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:pep8]
basepython = python3.8
deps = -Ur{toxinidir}/requirements-dev.txt
-Ur{toxinidir}/requirements.txt
commands = flake8 hooks/post_gen_project.py tests/test_bake_project.py setup.py