forked from djlint/djLint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
48 lines (43 loc) · 980 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
[tox]
envlist = test
skip_missing_interpreters = True
isolated_build = True
setenv =
PYTHONDONTWRITEBYTECODE=1
[testenv:isort]
commands =
isort src/djlint
isort tests
skip_install = True
allowlist_externals = isort
[testenv:black]
commands =
black src/djlint
black tests
skip_install = True
allowlist_externals = black
[testenv:lint]
commands =
ruff src/djlint
black --fast --check src/djlint
mypy src/djlint
ruff tests
black --fast --check tests
mypy tests
skip_install = true
allowlist_externals =
black
mypy
ruff
[testenv]
commands =
pytest --cov=src/djlint --cov-branch --cov-report xml:coverage.xml --cov-report term-missing {posargs:} -n auto --dist loadgroup
; need to install so that we can test python calls
skip_install = false
allowlist_externals = pytest
[testenv:test-fast]
commands =
pytest -n 7
; need to install so that we can test python calls
skip_install = false
allowlist_externals = pytest