-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
64 lines (58 loc) · 1.37 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
[tox]
envlist = py38,py39,py310,py311,py312,pypy3,coverage,py{38,39,310,311,312}-mypy,py{38,39,310,311,312}-lint,format,safety
labels =
test = py38,py39,py310,py311,py312
[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 = py38, py39, py310, py311, py312
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{38,39,310,311,312}-mypy]
labels = mypy
deps =
mypy
types-docutils
types-python-dateutil
commands =
mypy --config-file={toxinidir}/pyproject.toml -p basilisp
[testenv:py{38,39,310,311,312}-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:safety]
deps = safety
commands =
safety check -i 40291 -i 67599 -i 70612