djLint/tox.ini
Christopher Pickering 237e84464c
fix(requirements): removed optional deps from requirements section. Cleaned up tox
Some flake8 is not compatible with other versions, so some flake tools are disabled until those
packages are updated.

closes #322
2022-08-02 10:13:02 -05:00

60 lines
1 KiB
INI

[tox]
envlist = py3{7,8,9,10}-test
skip_missing_interpreters = True
isolated_build = True
setenv =
PYTHONDONTWRITEBYTECODE=1
[testenv:isort]
commands =
isort src/djlint
isort tests
skip_install: True
[testenv:black]
commands =
black src/djlint
black tests
skip_install: True
[testenv:lint]
deps =
; flake8 has a dep conflict
; some can be installed manaully
; here.
flake8
; flake8-bugbear
flake8-docstrings
flake8-builtins
flake8-comprehensions
; flake8-bandit
; flake8-eradicate
flake8-pytest-style
flake8-simplify
flake8-variables-names
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]
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]
commands =
pytest -n 4
skip_install: false