-
-
Notifications
You must be signed in to change notification settings - Fork 161
Expand file tree
/
Copy pathtox.ini
More file actions
52 lines (44 loc) · 1.37 KB
/
tox.ini
File metadata and controls
52 lines (44 loc) · 1.37 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
[tox]
envlist=
lint
py{310,311,312,313,314}-marshmallow
py314-marshmallowdev
py310-lowest
docs
[testenv]
dependency_groups = test-all-frameworks
deps =
marshmallow: marshmallow>=4.0.0,<5.0.0
marshmallowdev: https://github.com/marshmallow-code/marshmallow/archive/dev.tar.gz
lowest: flask==3.1.0
lowest: Django==5.2.0
lowest: bottle==0.13.0
lowest: tornado==6.5.0
lowest: pyramid==2.0.2
lowest: falcon==4.1.0
lowest: aiohttp==3.13.0
lowest: marshmallow==3.13.0
commands = pytest {posargs}
[testenv:lint]
deps = pre-commit~=3.5
skip_install = true
commands = pre-commit run --all-files
# a separate `mypy` target which runs `mypy` in an environment with
# `webargs` and `marshmallow` both installed is a valuable safeguard against
# issues in which `mypy` running on every file standalone won't catch things
[testenv:mypy]
deps = mypy==1.11.0
extras = frameworks
commands = mypy src/ {posargs}
[testenv:docs]
dependency_groups = docs
commands = sphinx-build docs/ {posargs:docs/_build}
; Below tasks are for development only (not run in CI)
[testenv:docs-serve]
deps = sphinx-autobuild
extras = docs
commands = sphinx-autobuild --port=0 --open-browser --delay=2 docs/ docs/_build {posargs} --watch src --watch CONTRIBUTING.rst --watch README.rst
[testenv:readme-serve]
deps = restview
skip_install = true
commands = restview README.rst