2017-04-24 13:58:51 +02:00
|
|
|
[tox]
|
2022-08-09 09:59:17 +02:00
|
|
|
envlist =
|
2023-02-27 12:53:36 +01:00
|
|
|
py3-django32-codestyle-coverage,
|
2022-08-09 09:59:17 +02:00
|
|
|
pylint
|
2019-03-31 15:08:41 +02:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/chrono/{env:BRANCH_NAME:}
|
2017-04-24 13:58:51 +02:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop =
|
|
|
|
coverage: True
|
|
|
|
nocoverage: False
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=chrono.settings
|
|
|
|
CHRONO_SETTINGS_FILE=tests/settings.py
|
2020-03-06 09:43:52 +01:00
|
|
|
BRANCH_NAME={env:BRANCH_NAME:}
|
2020-09-01 14:21:37 +02:00
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2024-03-25 13:50:50 +01:00
|
|
|
NUMPROCESSES={env:NUMPROCESSES:1}
|
2022-01-11 15:51:21 +01:00
|
|
|
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=chrono/ --cov-config .coveragerc
|
2022-07-06 10:09:06 +02:00
|
|
|
|
2017-04-24 13:58:51 +02:00
|
|
|
deps =
|
|
|
|
pytest-cov
|
|
|
|
pytest-django
|
2022-07-05 15:22:18 +02:00
|
|
|
pytest-xdist
|
2024-02-15 10:38:18 +01:00
|
|
|
pytest
|
2017-04-24 13:58:51 +02:00
|
|
|
WebTest
|
2020-10-06 09:29:03 +02:00
|
|
|
mock<4
|
2017-04-24 13:58:51 +02:00
|
|
|
httmock
|
2023-11-22 13:46:52 +01:00
|
|
|
pylint
|
2020-03-29 20:12:27 +02:00
|
|
|
pylint-django
|
2019-09-21 21:22:27 +02:00
|
|
|
django-webtest
|
2018-06-20 22:16:14 +02:00
|
|
|
pytz
|
2019-12-24 12:16:16 +01:00
|
|
|
pyquery
|
2022-08-09 09:59:17 +02:00
|
|
|
django-mellon>=1.6.1
|
2018-04-26 13:27:49 +02:00
|
|
|
pytest-freezegun
|
2023-12-18 11:09:39 +01:00
|
|
|
django-filter>=2.4,<23.2
|
2023-04-24 18:18:29 +02:00
|
|
|
weasyprint<52
|
2022-08-09 09:59:17 +02:00
|
|
|
django32: django>=3.2,<3.3
|
|
|
|
django32: psycopg2-binary>=2.9
|
2023-10-04 16:26:36 +02:00
|
|
|
djangorestframework>=3.12,<3.13 # matching debian bullseye
|
2021-04-08 11:24:47 +02:00
|
|
|
codestyle: pre-commit
|
2022-05-05 14:51:37 +02:00
|
|
|
git+https://git.entrouvert.org/publik-django-templatetags.git
|
2023-04-05 15:48:01 +02:00
|
|
|
responses
|
2024-01-09 16:40:51 +01:00
|
|
|
allowlist_externals =
|
|
|
|
./pylint.sh
|
|
|
|
./getlasso3.sh
|
2017-04-24 13:58:51 +02:00
|
|
|
commands =
|
2019-09-21 21:22:27 +02:00
|
|
|
./getlasso3.sh
|
2020-11-02 16:08:27 +01:00
|
|
|
python3 setup.py compile_translations
|
2024-04-04 11:07:55 +02:00
|
|
|
py.test {posargs:-v {env:COVERAGE:} --numprocesses={env:NUMPROCESSES:1} tests/}
|
2021-04-08 11:24:47 +02:00
|
|
|
codestyle: pre-commit run --all-files --show-diff-on-failure
|
2022-03-21 16:00:12 +01:00
|
|
|
|
|
|
|
[testenv:pylint]
|
2022-07-06 10:09:06 +02:00
|
|
|
setenv =
|
|
|
|
NUMPROCESSES={env:NUMPROCESSES:6}
|
|
|
|
|
2022-03-21 16:00:12 +01:00
|
|
|
deps =
|
|
|
|
pytest-django
|
|
|
|
pytest!=5.3.3
|
|
|
|
WebTest
|
|
|
|
mock<4
|
|
|
|
httmock
|
2023-11-22 13:46:52 +01:00
|
|
|
pylint
|
2022-03-21 16:00:12 +01:00
|
|
|
pylint-django
|
|
|
|
django-webtest
|
|
|
|
pytz
|
|
|
|
pyquery
|
|
|
|
django-mellon>=1.6.1
|
|
|
|
pytest-freezegun
|
|
|
|
psycopg2-binary<2.9
|
2022-05-05 14:51:37 +02:00
|
|
|
git+https://git.entrouvert.org/publik-django-templatetags.git
|
2023-04-05 15:48:01 +02:00
|
|
|
responses
|
2024-03-07 16:42:55 +01:00
|
|
|
lxml
|
2022-03-21 16:00:12 +01:00
|
|
|
commands =
|
|
|
|
./getlasso3.sh
|
|
|
|
pylint: ./pylint.sh chrono/ tests/
|