-
Notifications
You must be signed in to change notification settings - Fork 18
/
tox.ini
53 lines (45 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
46
47
48
49
50
51
52
53
[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 = .[linter]
commands = flake8 virtualenvwrapper docs/source/conf.py
[flake8]
max-line-length = 200
[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
[testenv:linkcheck]
deps =
-r{toxinidir}/docs/requirements.txt
commands =
sphinx-build -W -j auto -b linkcheck -d docs/build/doctrees docs/source docs/build/linkcheck
[testenv:pkglint]
deps=.[build]
commands=
python -m build
twine check dist/*.tar.gz dist/*.whl
check-python-versions --only pyproject.toml,.github/workflows/test.yml