-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
32 lines (25 loc) · 703 Bytes
/
tox.ini
File metadata and controls
32 lines (25 loc) · 703 Bytes
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
# https://python-poetry.org/docs/faq#is-tox-supported
[tox]
isolated_build = True
# https://tox.wiki/en/latest/config.html#base_python
envlist = py3{11,10,9,8,7}, lint, typing
# All tox environments by default inherit setting from the testenv section. (https://tox.wiki/en/latest/config.html#tox-ini)
[testenv]
deps = poetry
commands =
poetry install --with dev
coverage run -m pytest --pdb -vv tests/unit
[testenv:lint]
deps = pre-commit
commands =
pre-commit run isort --all-files --show-diff-on-failure
[testenv:typing]
deps =
mypy
poetry
skipdist = True
# we do not need our tool to be installed to check typing
skip_install = True
commands =
poetry install
mypy .