-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
tox.toml
79 lines (72 loc) · 1.28 KB
/
tox.toml
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
env_list = [
'py39',
'py310',
'py311',
'py312',
'pypy3',
'docs',
'mypy',
'pyright',
'ruff',
'repo-review',
'codespell',
]
skip_missing_interpreters = true
[env_run_base]
pass_env = ['FORCE_COLOR']
commands = [['pytest', '{posargs}']]
extras = ['tests', 'redis']
[env.mypy]
commands = [['mypy']]
[env.pyright]
deps = ['pyright']
commands = [['pyright']]
[env.ruff]
deps = ['ruff']
commands = [['ruff', 'check'], ['ruff', 'format', '--check']]
[env.docs]
extras = ['docs']
allowlist_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}',
],
]
[env.repo-review]
basepython = ['py312']
deps = ['sp-repo-review[cli]', 'validate-pyproject']
commands = [['repo-review']]
[env.codespell]
commands = [['codespell']]
deps = ['codespell', 'tomli']
skip_install = true
command = 'codespell'