forked from 4Catalyzer/flask-resty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
39 lines (32 loc) · 923 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
[tox]
envlist = py37-{base,full}, py38-{base,full}, py39-{base,full}, py310-{base,full}, docs, lint
[gh-actions]
python =
3.7: py37-base, py37-full
3.8: py38-base, py38-full
3.9: py39-base, py39-full
3.10: py310-base, py310-full, 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