publik-django-templatetags/tox.ini

26 lines
648 B
INI

[tox]
envlist = py3-django32-codestyle-coverage
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/publik-django-templatetags/{env:BRANCH_NAME:}
[testenv]
usedevelop =
coverage: True
nocoverage: False
setenv =
SETUPTOOLS_USE_DISTUTILS=stdlib
JUNIT=--junitxml=junit-{envname}.xml
coverage: COVERAGE=--cov-report xml --cov-report html --cov=publik_django_templatetags/
deps =
django32: django>=3.2,<3.3
pytest
pytest-cov
pytest-django
pytest-freezegun
WebTest
psycopg2-binary
psycopg2
pre-commit
commands =
pytest {posargs: {env:JUNIT:} {env:COVERAGE:} tests/}
codestyle: pre-commit run --all-files --show-diff-on-failure