| 1 |
[tox] |
| 2 |
envlist = |
| 3 |
py3{12,11,10,9,8} |
| 4 |
pypy310 |
| 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:style] |
| 19 |
deps = pre-commit |
| 20 |
skip_install = true |
| 21 |
commands = pre-commit run --all-files |
| 22 |
|
| 23 |
[testenv:typing] |
| 24 |
deps = -r requirements/typing.txt |
| 25 |
commands = |
| 26 |
mypy |
| 27 |
pyright |
| 28 |
pyright --verifytypes itsdangerous --ignoreexternal |
| 29 |
|
| 30 |
[testenv:docs] |
| 31 |
deps = -r requirements/docs.txt |
| 32 |
commands = sphinx-build -E -W -b dirhtml docs docs/_build/dirhtml |
| 33 |
|
| 34 |
[testenv:update-requirements] |
| 35 |
deps = |
| 36 |
pip-tools |
| 37 |
pre-commit |
| 38 |
skip_install = true |
| 39 |
change_dir = requirements |
| 40 |
commands = |
| 41 |
pre-commit autoupdate -j4 |
| 42 |
pip-compile -U build.in |
| 43 |
pip-compile -U docs.in |
| 44 |
pip-compile -U tests.in |
| 45 |
pip-compile -U typing.in |
| 46 |
pip-compile -U dev.in |