-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
41 lines (35 loc) · 896 Bytes
/
tox.ini
File metadata and controls
41 lines (35 loc) · 896 Bytes
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
[tox]
envlist =
py3{8,9,10,11,12}-test
doctest
lint
typing
[testenv]
deps =
django
coverage
test: -r requirements/testing.txt
doctest: sphinx
doctest: -e .
skip_install =
doctest: true
commands =
test: coverage run --data-file=.coverage.{envname} -m pytest
doctest: coverage run --data-file=.coverage.{envname} -m sphinx -W -E -a -b doctest docs/src docs/_build
[testenv:typing]
deps = -r requirements/typing.txt
commands = mypy
[testenv:lint]
skip_install = true
deps = pylint
commands = pylint --disable=all --enable=unused-import src
[testenv:docwatch]
skip_install = true
deps =
-e .
-r requirements/docwatch.txt
commands = sphinx-autobuild --port=8124 --watch=src --watch=docs/samples {posargs} docs/src docs/_build
[testenv:docbuild]
deps =
-r requirements/docbuild.txt
commands = sphinx-build {posargs} -E -a docs/src site