forked from mansenfranzen/autodoc_pydantic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
69 lines (62 loc) · 1.88 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[tox]
envlist = py{37,38,39,310,311,312}-pydantic{20,21,22,23,24,25,latest}-sphinx{40,45,53,62,70,71,72,latest}, latest, development, no_erdantic, linter
isolated_build = True
[testenv]
extras =
test
erdantic
commands =
{envpython} -c "from sphinxcontrib.autodoc_pydantic.utility import show_versions; show_versions()"
coverage run --source "sphinxcontrib/autodoc_pydantic" -m pytest -vv
coverage report -m
coverage xml
[testenv:pydantic{20,21,22,23,24,25,latest}-sphinx{40,45,53,62,70,71,72,latest}]
description = "Test specific historical stable versions."
deps =
pydantic20: pydantic~=2.0.0
pydantic21: pydantic~=2.1.0
pydantic22: pydantic~=2.2.0
pydantic23: pydantic~=2.3.0
pydantic24: pydantic~=2.4.0
pydantic25: pydantic~=2.5.0
pydanticlatest: pydantic
sphinx40: sphinx~=4.0.0
sphinx45: sphinx~=4.5.0
sphinx53: sphinx~=5.3.0
sphinx62: sphinx~=6.2.0
sphinx70: sphinx~=7.0.0
sphinx71: sphinx~=7.1.0
sphinx72: sphinx~=7.2.0
sphinxlatest: sphinx
[testenv:latest]
description = "Test the latest stable versions available from PyPI."
extras =
test
docs
erdantic
[testenv:no_erdantic]
description = "Test without optional erdantic dependency"
extras =
test
[testenv:development]
description = "Test the most recent development versions from git repositories."
deps =
git+https://github.com/samuelcolvin/pydantic.git
git+https://github.com/sphinx-doc/sphinx.git
git+https://github.com/executablebooks/sphinx-tabs.git
git+https://github.com/executablebooks/sphinx-copybutton.git
git+https://github.com/readthedocs/sphinx_rtd_theme.git
git+https://github.com/drivendataorg/erdantic.git
[testenv:linter]
skip_install = true
deps =
flake8
flake8-bugbear
flake8-typing-imports>=1.1
pep8-naming
commands =
flake8 sphinxcontrib/autodoc_pydantic/
[flake8]
ignore =
TYP001
TYP004