| 1 |
[tox] |
| 2 |
envlist= |
| 3 |
lint |
| 4 |
py{310,311,312,313,314}-marshmallow{3,4} |
| 5 |
py314-marshmallowdev |
| 6 |
py310-lowest |
| 7 |
docs |
| 8 |
|
| 9 |
[testenv] |
| 10 |
extras = tests |
| 11 |
deps = |
| 12 |
marshmallow3: marshmallow>=3.18.0,<4.0.0 |
| 13 |
marshmallowdev: https://github.com/marshmallow-code/marshmallow/archive/dev.tar.gz |
| 14 |
lowest: marshmallow==3.18.0 |
| 15 |
commands = pytest {posargs} |
| 16 |
|
| 17 |
[testenv:lint] |
| 18 |
deps = pre-commit~=3.5 |
| 19 |
skip_install = true |
| 20 |
commands = pre-commit run --all-files |
| 21 |
|
| 22 |
[testenv:docs] |
| 23 |
extras = docs |
| 24 |
commands = sphinx-build docs/ docs/_build {posargs} |
| 25 |
|
| 26 |
; Below tasks are for development only (not run in CI) |
| 27 |
|
| 28 |
[testenv:docs-serve] |
| 29 |
deps = sphinx-autobuild |
| 30 |
extras = docs |
| 31 |
commands = sphinx-autobuild --port=0 --open-browser --delay=2 docs/ docs/_build {posargs} --watch src --watch CONTRIBUTING.rst --watch README.rst |
| 32 |
|
| 33 |
[testenv:readme-serve] |
| 34 |
deps = restview |
| 35 |
skip_install = true |
| 36 |
commands = restview README.rst |
| 37 |
|
| 38 |
|