2022-05-02 23:08:39 +02:00
|
|
|
[tox]
|
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/lingo/{env:BRANCH_NAME:}
|
2022-08-04 14:25:56 +02:00
|
|
|
envlist =
|
2023-03-10 10:21:47 +01:00
|
|
|
coverage-py3-django32-codestyle,
|
2022-08-04 14:25:56 +02:00
|
|
|
pylint
|
2022-05-02 23:08:39 +02:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = True
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=lingo.settings
|
|
|
|
LINGO_SETTINGS_FILE=tests/settings.py
|
|
|
|
TOX_WORK_DIR={toxworkdir}
|
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
|
|
coverage: COVERAGE=--cov-report xml --cov-report html --cov=lingo/ --cov-config .coveragerc -v
|
|
|
|
DB_ENGINE=django.db.backends.postgresql_psycopg2
|
|
|
|
passenv =
|
|
|
|
BRANCH_NAME
|
|
|
|
deps =
|
2022-08-04 14:25:56 +02:00
|
|
|
django32: django>=3.2,<3.3
|
2022-05-02 23:08:39 +02:00
|
|
|
pytest-cov
|
|
|
|
pytest-django
|
|
|
|
pytest-freezegun
|
|
|
|
pytest!=5.3.3
|
|
|
|
WebTest
|
|
|
|
mock<4
|
|
|
|
httmock
|
2023-10-03 06:18:29 +02:00
|
|
|
pylint<3
|
|
|
|
astroid<3
|
2022-05-02 23:08:39 +02:00
|
|
|
pylint-django
|
2022-08-04 14:25:56 +02:00
|
|
|
django32: django-webtest
|
2022-05-02 23:08:39 +02:00
|
|
|
pyquery
|
2022-08-04 14:25:56 +02:00
|
|
|
django32: psycopg2-binary
|
2022-05-02 23:08:39 +02:00
|
|
|
django-mellon>=1.13
|
2023-01-23 15:39:58 +01:00
|
|
|
django-filter>=2.4,<2.5
|
2022-05-17 17:44:30 +02:00
|
|
|
git+https://git.entrouvert.org/publik-django-templatetags.git
|
2023-09-18 15:05:29 +02:00
|
|
|
git+https://git.entrouvert.org/entrouvert/debian-django-ckeditor.git
|
2022-05-02 23:08:39 +02:00
|
|
|
pre-commit
|
|
|
|
commands =
|
|
|
|
./getlasso3.sh
|
|
|
|
python manage.py compilemessages
|
|
|
|
py.test {env:COVERAGE:} {posargs: --junitxml=junit-{envname}.xml tests/}
|
|
|
|
codestyle: pre-commit run --all-files --show-diff-on-failure
|
|
|
|
|
|
|
|
[testenv:pylint]
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=lingo.settings
|
|
|
|
LINGO_SETTINGS_FILE=tests/settings.py
|
|
|
|
TOX_WORK_DIR={toxworkdir}
|
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
|
|
DB_ENGINE=django.db.backends.postgresql_psycopg2
|
|
|
|
deps =
|
|
|
|
pytest-django
|
|
|
|
pytest!=5.3.3
|
|
|
|
WebTest
|
|
|
|
mock<4
|
|
|
|
httmock
|
|
|
|
django-mellon>=1.13
|
2023-10-03 06:18:29 +02:00
|
|
|
pylint<3
|
|
|
|
astroid<3
|
2022-05-02 23:08:39 +02:00
|
|
|
pylint-django
|
2023-03-10 10:21:47 +01:00
|
|
|
django-webtest
|
2022-05-02 23:08:39 +02:00
|
|
|
pyquery
|
2023-03-10 10:21:47 +01:00
|
|
|
psycopg2-binary
|
2022-05-17 17:44:30 +02:00
|
|
|
git+https://git.entrouvert.org/publik-django-templatetags.git
|
2023-09-18 15:05:29 +02:00
|
|
|
git+https://git.entrouvert.org/entrouvert/debian-django-ckeditor.git
|
2022-05-02 23:08:39 +02:00
|
|
|
commands =
|
|
|
|
./getlasso3.sh
|
2023-11-29 09:24:06 +01:00
|
|
|
./pylint.sh lingo/ tests/
|
2023-02-10 14:35:20 +01:00
|
|
|
|
|
|
|
[testenv:bandit]
|
|
|
|
usedevelop = True
|
|
|
|
deps = bandit
|
|
|
|
commands = bandit -r lingo
|