djLint/tox.ini
2022-05-13 15:36:55 -05:00

78 lines
1.2 KiB
INI

[tox]
envlist = py3{7,8,9,10}-test
skip_missing_interpreters = True
isolated_build = True
setenv =
PYTHONDONTWRITEBYTECODE=1
[testenv:isort]
deps = isort
commands =
isort src/djlint
isort tests
skip_install: True
[testenv:black]
deps = black
commands =
black src/djlint
black tests
skip_install: True
[testenv:lint]
deps =
reformat
flake8
flake8-bugbear
flake8-docstrings
flake8-rst-docstrings
flake8-rst
flake8-builtins
pep8-naming
flake8-comprehensions
flake8-bandit
flake8-eradicate
flake8-pytest-style
flake8-print
flake8-simplify
flake8-variables-names
flake8-markdown
pygments
black
pylint
mypy
types-PyYAML
commands =
flake8 src/djlint
black --fast --check src/djlint
pylint src/djlint
mypy src/djlint
flake8 tests
black --fast --check tests
pylint tests
mypy tests
skip_install: true
[testenv]
deps =
pytest
pytest-cov
pytest-xdist
coverage
commands =
pytest --cov=src/djlint --cov-branch --cov-report xml:coverage.xml --cov-report term-missing {posargs:} -n auto --dist loadgroup
skip_install: false
[testenv:test-fast]
deps =
pytest
pytest-xdist
commands =
pytest -n 4
skip_install: false