barbacompta/tox.ini

43 lines
890 B
INI

[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/barbacompta/{env:BRANCH_NAME:}
envlist = py3-pylint,code-style
[testenv]
setenv =
DJANGO_SETTINGS_MODULE=eo_gestion.settings
BARBACOMPTA_SETTINGS_FILE=tests/settings.py
deps =
psycopg2-binary<2.9
pytest
pytest-cov
pytest-django
pytest-freezegun
httmock
pylint
pylint-django
django-webtest
django-mellon
pdbpp
uwsgidecorators
commands =
py.test {posargs: --junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=eo_gestion/ tests/}
pylint: ./pylint.sh eo_gestion/
[testenv:manage]
setenv =
DJANGO_SETTINGS_MODULE=eo_gestion.settings
commands =
./manage.py {posargs:--help}
[testenv:code-style]
skip_install = true
deps =
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure
[pytest]
filterwarnings=
ignore:Using or importing the ABCs from
junit_family=xunit2