-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtox.ini
38 lines (31 loc) · 832 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
[tox]
envlist = py310-{base,full}, py311-{base,full}, py312-{base,full}, docs, lint
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312, lint, docs
[testenv]
passenv = DATABASE_URL
usedevelop = True
extras =
tests
full: jwt
commands =
# FIXME: We get screwed up coverage when using pytest-cov because we
# declare ourselves as a pytest plugin.
coverage run -m pytest {posargs}
coverage report
[testenv:lint]
deps = pre-commit
skip_install = true
commands = pre-commit run --all-files
[testenv:docs]
extras = docs
commands = sphinx-build docs/ docs/_build {posargs}
# Below tasks are for development only (not run in CI)
[testenv:watch-docs]
deps =
sphinx-autobuild
extras = docs
commands = sphinx-autobuild --open-browser docs/ docs/_build {posargs} --watch flask_resty --delay 2