-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
57 lines (47 loc) · 1.22 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
[tox]
envlist =
py3{12,11}
black
ruff
tests
skip_missing_interpreters = true
[testenv]
package = wheel
wheel_build_env = .pkg
constrain_package_deps = true
use_frozen_constraints = true
[testenv:black]
description = install black in a virtual environment and invoke it on the current folder
deps = -r requirements/format.txt
skip_install = true
commands = black --check --target-version py311 --line-length 120 .
[testenv:ruff]
description = install ruff in a virtual environment and invoke it on the current folder
deps = -r requirements/format.txt
skip_install = true
commands = ruff check .
[testenv:tests]
description = run the tests with pytest
deps = -r requirements/tests.txt
pass_env = *
commands =
pytest \
--markers "not investigation_needed" \
-n auto \
tests
[testenv:update-requirements]
deps =
pip-tools
skip_install = true
change_dir = requirements
commands =
pip-compile -U --strip-extras build.in
pip-compile -U --strip-extras docs.in
pip-compile -U --strip-extras format.in
pip-compile -U --strip-extras tests.in
pip-compile -U --strip-extras dev.in
[testenv:pre-commit]
description = run pre-commit hooks on all files
deps = pre-commit
skip_install = true
commands = pre-commit run --all-files