generated from SpaceShaman/pypi-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
41 lines (37 loc) · 775 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
[tox]
env_list =
py{310,311,312}
lint
type
coverage
minversion = 4.16.0
[testenv]
description = run the tests with pytest
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands =
poetry run pytest {posargs}
[testenv:type]
description = run type checks
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands =
poetry run mypy {posargs:.}
[testenv:lint]
description = run linter
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands = poetry run ruff check {posargs}
[testenv:coverage]
description = run coverage report
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands = poetry run pytest --cov