-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
tox.ini
84 lines (74 loc) · 1.54 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[tox]
envlist =
py38
py39
py310
py311
py312
pypy3
flake8
docs
mypy
pyright
ruff
codespell
black
skip_missing_interpreters = True
[testenv]
pass_env =
FORCE_COLOR
basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
pypy3: pypy3
deps = -e{toxinidir}[tests,redis]
commands = python -m pytest {posargs}
[testenv:mypy]
basepython = python3
deps = mypy
commands =
mypy --install-types --non-interactive
mypy
[testenv:pyright]
changedir =
basepython = python3
deps =
pyright
-e{toxinidir}[tests,redis]
commands = pyright {toxinidir}/portalocker {toxinidir}/portalocker_tests
[testenv:flake8]
basepython = python3
deps = flake8>=6.0.0
commands = flake8 {toxinidir}/portalocker {toxinidir}/portalocker_tests
[testenv:black]
basepython = python3
deps = black
commands = black {toxinidir}/portalocker {toxinidir}/portalocker_tests
[testenv:docs]
basepython = python3
deps = -r{toxinidir}/docs/requirements.txt
allowlist_externals =
rm
mkdir
whitelist_externals =
rm
cd
mkdir
commands =
rm -f docs/modules.rst
mkdir -p docs/_static
sphinx-apidoc -e -o docs/ portalocker
rm -f docs/modules.rst
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html {posargs}
[testenv:ruff]
commands = ruff check {toxinidir}/portalocker {toxinidir}/portalocker_tests
deps = ruff
skip_install = true
[testenv:codespell]
commands = codespell .
deps = codespell
skip_install = true
command = codespell