-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
92 lines (67 loc) · 2.19 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
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
[tox]
ignoreerrors = True
minversion=3.0.0
envlist = py36,py37,py38,flake8,sphinx-build
usedevelop = True
workdir = .
dist_version = 0.0.2
[tox:.package]
# note tox will use the same python version as under what tox is installed to package
# so unless this is python 3 you can require a given python version for the packaging
# environment via the basepython key
basepython = python3
[testenv]
develop = True
pip_pre = True
deps = -r {toxinidir}/tools/requirements.txt
# I'm not gonna lie i don't even know what this says right now
setenv = cov: PYTEST_ADDOPTS=--cov=. --cov-append {env:PYTEST_ADDOPTS}
passenv = "*", LANG=C
usedevelop = true
changedir = tests
# change pytest tempdir and add posargs from command line
commands = pytest --basetemp="{envtmpdir}" {posargs}
[testenv:py36]
# i only have 3.8 anymore
ignore_outcome = True
basecommand=python3.6
description =
Run setup.py test for python3.6.
[testenv:py37]
# i only have 3.8 anymore
ignore_outcome = True
basecommand=python3.7
description =
Run setup.py test for python3.7.
[testenv:flake8]
skip_install = True
description = Run flake8, benchmark and doctest.
commands = flake8 --config=setup.cfg --doctest --benchmark
deps =
flake8
flake8-rst
flake8-docstrings
flake8-rst-docstrings
IPython
[testenv:sphinx-build]
description = Build documentation.
deps = sphinx
commands =
python setup.py build_sphinx {posargs}
sphinx-build -b doctest docs html
sphinx-build docs html
; [testenv:docs]
; description =
; Check sphinx-build can create docs correctly. Enable all docs to be build
;using no pre-existing environment, drop to PDB on error, log to tox_docs.log
; in the current dir.
# Wow did this get long
; commands = sphinx-build -b html -w tox_docs.log -aE source build/html
; -d {envtmpdir}/doctrees -c source {envtmpdir}/source {envtmpdir}/build/html
; changedir = {toxinidir}/docs
; passenv = True
; changedir=docs
; Disabling plugins¶
; To disable loading specific plugins at invocation time, use the -p option together with the prefix no:.
; Example: to disable loading the plugin doctest, which is responsible for executing doctest tests from text files, invoke pytest like this:
; pytest -p no:doctest