djLint/tox.ini

58 lines
1,013 B
INI
Raw Normal View History

2021-07-13 15:45:57 +00:00
[tox]
2021-10-29 12:44:11 +00:00
envlist = py3{7,8,9,10}-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
2021-10-29 12:44:11 +00:00
[testenv]
2021-09-08 08:52:24 +00:00
deps =
pytest
pytest-cov
coverage
2021-07-13 15:45:57 +00:00
commands =
2021-10-29 12:44:11 +00:00
pytest --cov=src/djlint --cov-branch --cov-report xml:coverage.xml --cov-report term-missing {posargs:}
2021-09-08 08:53:19 +00:00
skip_install: false