-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
41 lines (37 loc) · 840 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
[testenv]
deps =
setenv =
PYTHONWARNDEFAULTENCODING = 1
commands =
pytest --cov --cov-config=pyproject.toml {posargs}
usedevelop = True
extras =
testing
[testenv:script]
# Deliberately blank to override the defaults set above
deps =
extras =
commands =
setup-to-pyproject --help
# There is very little advantage to using the pre_commit tox environment,
# compared to running pre-commit directly, but we provide it in case you want to
# use it. For example, if you don't want to install pre-commit locally.
[testenv:pre_commit]
deps =
pre-commit
commands =
pre-commit run --all-files
skip_install = True
[testenv:docs]
extras =
docs
testing
changedir = docs
commands =
python -m sphinx --keep-going . {toxinidir}/build/html
python -m sphinxlint
[testenv:towncrier]
deps =
towncrier
commands =
towncrier build --yes {posargs}