-
Notifications
You must be signed in to change notification settings - Fork 38
/
tox.ini
64 lines (56 loc) · 1.51 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
[tox]
envlist = ruff, black, pypy3, py39, py310, py311, py312, py313, docs, mypy, pyright
skip_missing_interpreters = True
[testenv]
basepython =
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
py313: python3.13
pypy3: pypy3
setenv = PY_IGNORE_IMPORTMISMATCH=1
deps =
mypy
pyright
-r{toxinidir}/_python_utils_tests/requirements.txt
commands =
mypy
pyright
py.test --basetemp="{envtmpdir}" --confcutdir=.. {posargs} python_utils _python_utils_tests
[testenv:ruff]
basepython = python3
deps = ruff
commands = ruff check {toxinidir}/setup.py {toxinidir}/_python_utils_tests {toxinidir}/python_utils
[testenv:black]
basepython = python3
deps = black
commands = black --skip-string-normalization --line-length 79 {toxinidir}/setup.py {toxinidir}/_python_utils_tests {toxinidir}/python_utils
[testenv:pyright]
basepython = python3
deps =
pyright
-r{toxinidir}/_python_utils_tests/requirements.txt
commands = pyright {posargs}
[testenv:mypy]
basepython = python3
deps = -r{toxinidir}/_python_utils_tests/requirements.txt
commands = mypy {posargs}
[testenv:docs]
changedir =
basepython = python3
deps = -r{toxinidir}/docs/requirements.txt
allowlist_externals =
rm
mkdir
whitelist_externals =
rm
cd
mkdir
commands =
rm -f docs/project_name.rst
rm -f docs/modules.rst
mkdir -p docs/_static
sphinx-apidoc -o docs/ python_utils
rm -f docs/modules.rst
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html {posargs}