-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
42 lines (38 loc) · 917 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
[tox]
requires =
tox>=4
env_list =
py{310,311,312}
lint
type
coverage
[testenv]
description = run the tests with pytest
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands =
poetry run pytest {posargs:tests}
[testenv:type]
description = run type checks
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands =
poetry run mypy {posargs:walledeval tests}
[testenv:lint]
description = run linter
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands = poetry run ruff check {posargs:walledeval tests}
[testenv:coverage]
description = run coverage report
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands = poetry run pytest --cov=walledeval tests/