-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
52 lines (48 loc) · 1012 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
[tox]
requires =
tox>=4
env_list = lint, format, typing, py{311,310}
[testenv]
description = Run tests in an isolated environment.
package = wheel
extras = test
commands =
pytest -vv {posargs:tests}
[testenv:lint]
description = Run linters without modifying the code.
skip_install = true
ignore_errors = true
basepython = py311,py310
deps =
black
isort
ruff
refurb
docformatter
commands =
black --check {posargs:src tests}
docformatter --check {posargs:src}
isort --check {posargs:src tests}
ruff check {posargs:src tests}
refurb {posargs:src tests}
[testenv:format]
description = Run formatters, modifying the code in-place.
skip_install = true
ignore_errors = true
basepython = py311,py310
deps =
black
isort
docformatter
commands =
black {posargs:src tests}
docformatter --in-place {posargs:src}
isort {posargs:src tests}
[testenv:typing]
description = Run static type checker.
skip_install = true
basepython = py311,py310
deps =
mypy
commands =
mypy {posargs:src}