djLint/tox.ini
Christopher Pickering 925ce46f12
added docs workflow
2021-09-16 10:14:45 +02:00

68 lines
1.2 KiB
INI

[tox]
envlist = 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:test]
deps =
pytest
pytest-cov
coverage
commands =
pytest --cov=src/djlint --cov-branch --cov-report xml:coverage.xml --cov-report term-missing
skip_install: false
[testenv:docs]
changedir = docs
deps =
sphinx
myst-parser
sphinx_copybutton
commands = sphinx-build -E -b html . _build
setenv =
PYTHONDONTWRITEBYTECODE=1
DEBUG=False