-
Notifications
You must be signed in to change notification settings - Fork 21
/
tox.ini
44 lines (39 loc) · 853 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
[tox]
requires =
tox>=4
env_list = lint, format, type, 3.9, 3.10, 3.11, 3.12, 3.13
[gh-actions]
python =
3.9: py39
3.10: py310, mypy
3.11: py311, mypy
3.12: py312, mypy
3.13: py313, mypy
[testenv]
description = run unit tests
changedir = {tox_root}/tests
commands = {envpython} runner.py
[testenv:lint]
description = run linter
changedir = {tox_root}
skip_install = true
deps =
ruff
commands = {envpython} -m ruff {posargs:check {tox_root}}
[testenv:format]
description = run formatter
changedir = {tox_root}
skipsdist = true
skip_install = true
deps = black
commands =
{envpython} -m black --check --diff {posargs:{tox_root}}
[testenv:type]
description = run type checks
changedir = {tox_root}
ignore_outcome = true
deps =
mypy >= 1.2.0
types-requests
commands =
{envpython} -m mypy {posargs:src tests}