-
Notifications
You must be signed in to change notification settings - Fork 232
/
tox.ini
50 lines (46 loc) · 1.03 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]
envlist =
linting
py{38,39,310,311,312,313}-pytestlatest
py310-pytestmain
py310-psutil
py310-setproctitle
isolated_build = true
[testenv]
extras =
testing
psutil: psutil
setproctitle: setproctitle
deps =
pytestmin: pytest==7.0.0
pytestlatest: pytest
pytestmain: git+https://github.com/pytest-dev/pytest.git
commands =
pytest {posargs:{env:_XDIST_TOX_DEFAULT_POSARGS:}}
setenv =
_XDIST_TOX_DEFAULT_POSARGS={env:_XDIST_TOX_POSARGS_PSUTIL:}
psutil: _XDIST_TOX_POSARGS_PSUTIL=-k psutil
[testenv:linting]
skip_install = True
usedevelop = True
passenv = PRE_COMMIT_HOME
deps =
pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:release]
changedir =
description = do a release, required posarg of the version number
skipsdist = True
usedevelop = True
passenv = *
deps =
towncrier
commands =
towncrier build --version {posargs} --yes
[testenv:docs]
usedevelop = True
deps =
sphinx
sphinx_rtd_theme
commands =
sphinx-build -W --keep-going -b html docs docs/_build/html {posargs:}