-
Notifications
You must be signed in to change notification settings - Fork 153
/
tox.ini
53 lines (48 loc) · 980 Bytes
/
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
[tox]
min_version = 4.0
env_list = py3{9,10,11,12}
pypy310
graalpy
flake8, black, typecheck
labels =
test = py3{9,10,11,12},pypy310,graalpy
cpy = py3{9,10,11,12}
pypy = pypy3.10
graal = graalpy-24
check = flake8, black, typecheck
[testenv]
# wheel install
package = wheel
# wheel is universal so can use the same wheel for all envs
wheel_build_env = .pkg
# for extra deps
# extras =
deps =
pytest
pyyaml
google-re2
ua-parser-rs
./ua-parser-builtins
commands =
pytest -Werror --doctest-glob="*.rst" {posargs}
[testenv:{pypy310,graalpy}]
deps =
pytest
pyyaml
ua-parser-rs
./ua-parser-builtins
[testenv:flake8]
package = skip
deps = ruff
commands = ruff check {posargs}
[testenv:black]
package = skip
deps = ruff
commands = ruff format {posargs:--diff}
[testenv:typecheck]
package = skip
deps =
mypy
types-PyYaml
./ua-parser-builtins
commands = mypy {posargs:}