-
Notifications
You must be signed in to change notification settings - Fork 30
/
tox.ini
47 lines (40 loc) · 910 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
43
44
45
46
47
[tox]
requires =
tox>=4
envlist = py{38,39,310,311,312}, black, ruff, pyright, isort
isolated_build = true
[gh-actions]
python =
3.8: py38, black, ruff, pyright, isort
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
setenv =
PYTHONPATH = "{toxinidir}"
allowlist_externals = poetry
commands_pre =
poetry install
commands =
poetry run pytest --basetemp="{envtmpdir}" tests
[testenv:pyright]
setenv =
PYTHONPATH = "{toxinidir}"
allowlist_externals = poetry
commands_pre =
poetry install -v --no-root --sync
commands =
poetry run pyright --project "{toxinidir}" quiffen
[testenv:ruff]
basepython = python3.8
deps = ruff
commands = ruff "{toxinidir}"
[testenv:black]
basepython = python3.8
deps = black
commands = black --check --diff "{toxinidir}"
[testenv:isort]
basepython = python3.8
deps = isort
commands = isort --check-only --diff "{toxinidir}"