djLint/tox.ini

69 lines
1.2 KiB
INI
Raw Normal View History

2021-07-13 15:45:57 +00:00
[tox]
2021-08-17 13:56:40 +00:00
envlist = test
2021-07-13 15:45:57 +00:00
skip_missing_interpreters = True
isolated_build = True
2021-07-29 18:41:34 +00:00
2021-07-23 20:58:24 +00:00
[testenv:isort]
deps = isort
commands = isort src/djlint
2021-09-08 09:52:16 +00:00
skip_install: True
2021-07-23 20:58:24 +00:00
[testenv:black]
deps = black
commands = black src/djlint
2021-09-08 09:52:16 +00:00
skip_install: True
2021-07-23 20:58:24 +00:00
[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
2021-07-29 18:41:34 +00:00
check-manifest
2021-07-23 20:58:24 +00:00
commands =
flake8 src/djlint
black --fast --check src/djlint
pylint src/djlint
mypy src/djlint
2021-07-29 18:41:34 +00:00
; check-manifest -v
2021-07-23 20:58:24 +00:00
skip_install: true
[testenv:test]
2021-09-08 08:52:24 +00:00
deps =
pytest
pytest-cov
coverage
2021-07-13 15:45:57 +00:00
commands =
2021-08-17 13:56:40 +00:00
pytest --cov=src/djlint --cov-branch --cov-report xml:coverage.xml --cov-report term-missing
2021-09-08 08:53:19 +00:00
skip_install: false
2021-09-16 08:14:45 +00:00
[testenv:docs]
changedir = docs
deps =
sphinx
myst-parser
sphinx_copybutton
commands = sphinx-build -E -b html . _build
setenv =
PYTHONDONTWRITEBYTECODE=1
DEBUG=False