forked from ua-parser/uap-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
46 lines (41 loc) · 839 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
[tox]
min_version = 4.0
env_list = py3{8,9,10,11,12}
pypy3.{8,9,10}
flake8, black, typecheck
labels =
test = py3{8,9,10,11,12},pypy3.{8,9,10}
cpy = py3{8,9,10,11,12}
pypy = pypy3.{8,9,10}
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
commands =
pytest -Werror --doctest-glob="*.rst" {posargs}
[testenv:pypy3.{8,9,10}]
deps =
pytest
pyyaml
[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
commands = mypy {posargs:}