Debian Codegraph @

tox.ini

raw
1 [tox]
2 envlist =
3 py3{13,12,11,10,9,8,7}
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:py37,py3.7]
19 deps = -r requirements/tests37.txt
20
21 [testenv:style]
22 deps = pre-commit
23 skip_install = true
24 commands = pre-commit run --all-files
25
26 [testenv:typing]
27 deps = -r requirements/typing.txt
28 commands = mypy
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-actions]
35 labels = update
36 deps = gha-update
37 commands = gha-update
38
39 [testenv:update-pre_commit]
40 labels = update
41 deps = pre-commit
42 skip_install = true
43 commands = pre-commit autoupdate -j4
44
45 [testenv:update-requirements]
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}
56
57 [testenv:update-requirements37]
58 base_python = 3.7
59 labels = update
60 deps = pip-tools
61 skip_install = true
62 change_dir = requirements
63 commands = pip-compile tests.in -q -o tests37.txt {posargs:-U}