-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtox.ini
65 lines (59 loc) · 1.41 KB
/
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
[tox]
envlist = py39,py310,py311,py312,py313,pypy3,coverage,py{39,310,311,312,313}-mypy,py{39,310,311,312,313}-lint,format,bandit
labels =
test = py39,py310,py311,py312,py313
[testenv]
allowlist_externals = poetry
parallel_show_output = {env:TOX_SHOW_OUTPUT:true}
setenv =
BASILISP_DO_NOT_CACHE_NAMESPACES = true
deps =
coverage[toml]
pytest >=7.0.0,<9.0.0
pytest-xdist >=3.6.1,<4.0.0
pygments
commands =
coverage run \
--source={envsitepackagesdir}/basilisp \
--parallel-mode \
-m pytest \
--import-mode=importlib \
--junitxml={toxinidir}/junit/pytest/{envname}.xml \
{posargs}
[testenv:coverage]
depends = py39, py310, py311, py312, py313
deps = coverage[toml]
commands =
coverage combine
coverage report
coverage xml
[testenv:format]
deps =
black >=24.0.0
isort
commands =
isort --check .
black --check .
[testenv:py{39,310,311,312,313}-mypy]
labels = mypy
deps =
mypy
types-docutils
types-python-dateutil
commands =
mypy --config-file={toxinidir}/pyproject.toml -p basilisp
[testenv:py{39,310,311,312,313}-lint]
labels = lint
deps =
pylint >=3.0.0,<4.0.0
pytest >=7.0.0,<8.0.0
ruff >=0.1.0,<1.0.0
sphinx
commands =
pylint src/
ruff check src/
[testenv:bandit]
deps =
bandit[toml]
commands =
bandit -c {toxinidir}/pyproject.toml -r {toxinidir}/src/basilisp