forked from python-virtualenvwrapper/virtualenvwrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (42 loc) · 1004 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
37
38
39
40
41
42
43
44
45
46
47
48
[tox]
envlist = py,zsh,style
[testenv]
commands = bash ./tests/run_tests {envdir} []
pass_env =
HOME
USER
setenv =
USING_TOX = 1
SHELL = /bin/bash
allowlist_externals =
bash
zsh
[testenv:fast]
setenv =
USING_TOX = 1
SHELL = /bin/bash
FAIL_FAST = true
[testenv:style]
deps = flake8
commands = flake8 virtualenvwrapper docs/source/conf.py
[testenv:zsh]
setenv =
USING_TOX = 1
SHELL = /bin/zsh
test_shell_opts = -o shwordsplit
commands = zsh -o shwordsplit ./tests/run_tests {envdir} []
[testenv:docs]
deps =
-r{toxinidir}/docs/requirements.txt
commands =
sphinx-build -W -j auto -b html -d docs/build/doctrees docs/source docs/build/html
sphinx-build -W -j auto -b linkcheck -d docs/build/doctrees docs/source docs/build/linkcheck
[testenv:pkglint]
deps=
build
twine
check-python-versions
commands=
python -m build
twine check dist/*.tar.gz dist/*.whl
check-python-versions --only pyproject.toml,.github/workflows/test.yml