welco/tox.ini

38 lines
965 B
INI

[tox]
envlist =
py3-django22-black-coverage-pylint-drf39
py3-django22-black-coverage-pylint-drf312
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/welco/{env:BRANCH_NAME:}
[testenv]
usedevelop =
coverage: True
setenv =
DJANGO_SETTINGS_MODULE=welco.settings
WELCO_SETTINGS_FILE=tests/settings.py
SETUPTOOLS_USE_DISTUTILS=stdlib
fast: FAST=--nomigrations
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=welco/
deps =
django22: django>=2.2,<2.3
pytest-cov
pytest-django
pytest!=5.3.3
WebTest
mock<4
httmock
python-dateutil
pylint
pylint-django
django-webtest
pyquery
lxml
git+https://git.entrouvert.org/debian/django-ckeditor.git
black: pre-commit
drf39: djangorestframework>=3.9.2,<3.10
drf312: djangorestframework>=3.12,<3.13
commands =
pylint: ./pylint.sh welco/
py.test {env:COVERAGE:} {posargs:tests/}
black: pre-commit run black --all-files --show-diff-on-failure