-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathtox.toml
More file actions
30 lines (26 loc) · 1000 Bytes
/
tox.toml
File metadata and controls
30 lines (26 loc) · 1000 Bytes
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
env_list = ["cythonize", "format", "3.14", "3.14t", "3.13", "3.12", "3.11", "3.10", "3.9"]
parallel_show_output = true
[env.format]
description = "install ruff in a virtual environment and invoke it"
deps = ["ruff>=0.14", "readme-renderer[md]"]
skip_install = true
allowlist_externals = ["bash", ]
commands = [
[ "ruff", "check", "--select", "I", "--diff", "--fix", "test_neologdn.py" ],
[ "ruff", "check", "--select", "I", "--diff", "--fix", "setup.py" ],
[ "bash", "-n", "cythonize.sh" ],
[ "python", "-m", "readme_renderer", "README.md", "-o", "/dev/null" ]
]
[env.cythonize]
description = "Cythonize"
deps = ["cython"]
skip_install = true
commands = [
["cython", "--cplus", "-3", "neologdn.pyx"]
]
[env.3.14t]
deps = ["pytest-run-parallel"]
commands = [["pytest", "--iterations=4", "--parallel-threads=auto", "test_neologdn.py"]]
[env_run_base]
description = "run unit tests"
commands = [["python", { replace = "posargs", default = ["test_neologdn.py"], extend = true }]]