-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
68 lines (54 loc) · 937 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[tox]
isolated_build = true
envlist =
py{38,39,310,311}, flake8, isort, dist
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[base]
deps =
poetry
[testenv]
extras = test
allowlist_externals =
poetry
# NOTE: We should do poetry install with `--sync` to remove any random
# extra libraries.
commands_pre =
poetry install --no-interaction --no-root
commands =
poetry run pytest
envdir = {toxworkdir}/v/{envname}
passenv =
PYTHONPATH
GITHUB_*
usedevelop = True
[testenv:black]
commands =
black -l 100 -t py311 --check --diff {posargs}
deps =
black
[testenv:black-fix]
commands =
black -l 100 -t py311 .
deps =
black
[testenv:flake8]
commands =
flake8 {posargs}
deps =
flake8
[testenv:isort]
commands =
isort --check-only --diff .
deps =
isort
[testenv:dist]
commands =
twine check .tox/dist/*
deps =
twine
usedevelop = False