-
-
Notifications
You must be signed in to change notification settings - Fork 66
/
tox.ini
34 lines (32 loc) · 931 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
[tox]
minversion = 4.20.0
envlist = py310, py311, py312, pyright, ruff, black, isort, docformatter
isolated_build = True
[gh-actions]
python =
3.10: py310, pyright, ruff, black, isort, docformatter
3.11: py311
3.12: py312
[testenv]
basepython =
py310, pyright, ruff, black, isort, docformatter: python3.10
py311: python3.11
py312: python3.12
setenv =
PYTHONPATH = {toxinidir}
py310, py311, py312: GROUP = main,test
pyright, ruff: GROUP = main,test
black, isort, docformatter: GROUP = lint
skip_install = true
allowlist_externals = poetry
deps =
poetry
commands_pre =
poetry install --only "{env:GROUP}" --no-root -v
commands =
py310, py311, py312: poetry run pytest
pyright: poetry run pyright
ruff: poetry run ruff check .
black: poetry run black . --check
isort: poetry run isort . -c
docformatter: poetry run docformatter -cr . --config ./pyproject.toml