forked from mac-cleanup/mac-cleanup-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
32 lines (30 loc) · 871 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
[tox]
minversion = 4.6.4
envlist = py310, py311, pyright, ruff, black, isort, docformatter
isolated_build = True
[gh-actions]
python =
3.10: py310, pyright, ruff, black, isort, docformatter
3.11: py311
[testenv]
basepython =
py310, pyright, ruff, black, isort, docformatter: python3.10
py311: python3.11
setenv =
PYTHONPATH = {toxinidir}
py310, py311: 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: 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