-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
tox.toml
106 lines (99 loc) · 1.69 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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',
'-vf',
'docs/mt940.json.rst',
],
[
'rm',
'-vf',
'docs/mt940.models.rst',
],
[
'rm',
'-vf',
'docs/mt940.parser.rst',
],
[
'rm',
'-vf',
'docs/mt940.processors.rst',
],
[
'rm',
'-vf',
'docs/mt940.rst',
],
[
'rm',
'-vf',
'docs/mt940.tags.rst',
],
[
'rm',
'-vf',
'docs/mt940.utils.rst',
],
[
'mkdir',
'-p',
'docs/_static',
],
[
'sphinx-apidoc',
'--separate',
'--module-first',
'--output-dir',
'docs/',
'mt940',
],
[
'sphinx-build',
'-W',
'-b',
'html',
'-d',
'docs/doctrees',
'docs',
'docs/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'