| 1 |
[tox] |
| 2 |
envlist = |
| 3 |
py3{12,11,10,9,8} |
| 4 |
minimal |
| 5 |
style |
| 6 |
typing |
| 7 |
docs |
| 8 |
skip_missing_interpreters = true |
| 9 |
|
| 10 |
[testenv] |
| 11 |
package = wheel |
| 12 |
wheel_build_env = .pkg |
| 13 |
constrain_package_deps = true |
| 14 |
use_frozen_constraints = true |
| 15 |
deps = -r requirements/tests.txt |
| 16 |
commands = pytest -v --tb=short --basetemp={envtmpdir} {posargs} |
| 17 |
|
| 18 |
[testenv:minimal] |
| 19 |
deps = |
| 20 |
commands = python -c "from flask_debugtoolbar import DebugToolbarExtension" |
| 21 |
|
| 22 |
[testenv:style] |
| 23 |
deps = pre-commit |
| 24 |
skip_install = true |
| 25 |
commands = pre-commit run --all-files |
| 26 |
|
| 27 |
[testenv:typing] |
| 28 |
deps = -r requirements/typing.txt |
| 29 |
commands = |
| 30 |
mypy |
| 31 |
pyright |
| 32 |
pyright --verifytypes flask_debugtoolbar --ignoreexternal |
| 33 |
|
| 34 |
[testenv:docs] |
| 35 |
deps = -r requirements/docs.txt |
| 36 |
commands = sphinx-build -E -W -b dirhtml docs docs/_build/dirhtml |
| 37 |
|
| 38 |
[testenv:update-pre_commit] |
| 39 |
labels = update |
| 40 |
deps = pre-commit |
| 41 |
skip_install = true |
| 42 |
commands = pre-commit autoupdate -j4 |
| 43 |
|
| 44 |
[testenv:update-requirements] |
| 45 |
base_python = 3.8 |
| 46 |
labels = update |
| 47 |
deps = pip-tools |
| 48 |
skip_install = true |
| 49 |
change_dir = requirements |
| 50 |
commands = |
| 51 |
pip-compile build.in -q {posargs:-U} |
| 52 |
pip-compile docs.in -q {posargs:-U} |
| 53 |
pip-compile tests.in -q {posargs:-U} |
| 54 |
pip-compile typing.in -q {posargs:-U} |
| 55 |
pip-compile dev.in -q {posargs:-U} |