mirror of
https://github.com/Hopiu/djLint.git
synced 2026-03-16 21:40:24 +00:00
72 lines
1.2 KiB
INI
72 lines
1.2 KiB
INI
[tox]
|
|
envlist = py3{7,8,9,10}-test
|
|
skip_missing_interpreters = True
|
|
isolated_build = True
|
|
|
|
|
|
[testenv:isort]
|
|
deps = isort
|
|
commands = isort src/djlint
|
|
skip_install: True
|
|
|
|
|
|
[testenv:black]
|
|
deps = black
|
|
commands = black src/djlint
|
|
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
|
|
check-manifest
|
|
commands =
|
|
flake8 src/djlint
|
|
black --fast --check src/djlint
|
|
pylint src/djlint
|
|
mypy src/djlint
|
|
; check-manifest -v
|
|
skip_install: true
|
|
|
|
[testenv]
|
|
deps =
|
|
pytest
|
|
pytest-cov
|
|
coverage
|
|
commands =
|
|
pytest --cov=src/djlint --cov-branch --cov-report xml:coverage.xml --cov-report term-missing {posargs:}
|
|
skip_install: false
|
|
|
|
[testenv:docs]
|
|
changedir = docs
|
|
deps =
|
|
sphinx
|
|
myst-parser
|
|
sphinx_copybutton
|
|
sphinx-sitemap
|
|
commands =
|
|
sphinx-build -E -b dirhtml . _build
|
|
setenv =
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
DEBUG=False
|
|
whitelist_externals =
|
|
rm
|