2016-03-29 18:52:09 +02:00
|
|
|
[tox]
|
2021-01-04 16:41:05 +01:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/wcs/{env:BRANCH_NAME:main}/{env:EXECUTOR_NUMBER:}
|
2023-02-24 14:05:35 +01:00
|
|
|
envlist = py3-django32-codestyle-coverage, pylint
|
2016-03-29 18:52:09 +02:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv =
|
2022-07-06 11:51:44 +02:00
|
|
|
NUMPROCESSES={env:NUMPROCESSES:1}
|
2020-09-01 12:22:22 +02:00
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2019-09-26 15:25:12 +02:00
|
|
|
PYTHONPATH={toxinidir}{:}{env:PYTHONPATH:}
|
2017-12-30 23:32:31 +01:00
|
|
|
DJANGO_SETTINGS_MODULE=wcs.settings
|
|
|
|
WCS_SETTINGS_FILE=tests/settings.py
|
2019-09-26 15:25:12 +02:00
|
|
|
LC_ALL=C
|
|
|
|
LC_TIME=C
|
|
|
|
LANG=C
|
2024-03-15 10:11:43 +01:00
|
|
|
JOB_NAME={env:JOB_NAME:}
|
2019-12-09 11:25:28 +01:00
|
|
|
coverage: COVERAGE=--cov-report xml --cov-report html --cov=wcs/ --cov-config .coveragerc -v
|
2016-03-29 18:52:09 +02:00
|
|
|
passenv =
|
|
|
|
USER
|
|
|
|
deps =
|
2022-10-12 12:29:13 +02:00
|
|
|
# test dependencies
|
2020-02-11 09:48:15 +01:00
|
|
|
pytest>=3.6
|
2016-03-29 18:52:09 +02:00
|
|
|
pytest-mock
|
|
|
|
pytest-cov
|
2019-09-26 15:25:12 +02:00
|
|
|
pytest-django
|
2022-07-06 11:51:44 +02:00
|
|
|
pytest-xdist
|
2020-01-03 22:55:52 +01:00
|
|
|
pytest-freezegun
|
2016-03-29 18:52:09 +02:00
|
|
|
WebTest
|
2019-12-23 15:13:37 +01:00
|
|
|
mechanize
|
2016-03-29 18:52:09 +02:00
|
|
|
pyquery
|
2021-11-23 15:12:06 +01:00
|
|
|
mock
|
2022-08-29 20:01:05 +02:00
|
|
|
responses
|
2021-05-31 22:33:14 +02:00
|
|
|
astroid!=2.5.7
|
2021-08-30 16:38:04 +02:00
|
|
|
pylint
|
2021-02-05 15:48:46 +01:00
|
|
|
pre-commit
|
2021-06-24 19:24:47 +02:00
|
|
|
pyzbar
|
2023-12-23 11:33:58 +01:00
|
|
|
schwifty
|
2023-11-23 10:39:52 +01:00
|
|
|
bleach<5
|
2022-10-12 12:29:13 +02:00
|
|
|
# others...
|
2023-02-24 14:05:35 +01:00
|
|
|
django32: django>=3.2,<3.3
|
2023-07-18 14:57:43 +02:00
|
|
|
allowlist_externals =
|
|
|
|
./getlasso3.sh
|
2016-03-29 18:52:09 +02:00
|
|
|
commands =
|
2022-10-12 12:26:39 +02:00
|
|
|
./getlasso3.sh
|
2022-10-12 14:13:33 +02:00
|
|
|
py.test {posargs:-v {env:COVERAGE:} --numprocesses={env:NUMPROCESSES:1} --dist loadfile --junitxml=junit-{envname}.xml tests/}
|
2021-03-19 11:34:18 +01:00
|
|
|
codestyle: pre-commit run --all-files --show-diff-on-failure
|
2022-04-28 18:21:12 +02:00
|
|
|
|
|
|
|
[testenv:pylint]
|
2022-07-06 10:27:30 +02:00
|
|
|
setenv =
|
|
|
|
NUMPROCESSES={env:NUMPROCESSES:6}
|
2022-04-28 18:21:12 +02:00
|
|
|
sitepackages = true
|
|
|
|
deps =
|
|
|
|
pytest>=3.6
|
|
|
|
pytest-mock
|
|
|
|
pytest-cov
|
|
|
|
pytest-django
|
|
|
|
pytest-freezegun
|
|
|
|
WebTest
|
|
|
|
mechanize
|
|
|
|
pyquery
|
|
|
|
mock
|
|
|
|
requests
|
2022-08-29 20:01:05 +02:00
|
|
|
responses
|
2022-04-28 18:21:12 +02:00
|
|
|
vobject
|
|
|
|
qrcode
|
|
|
|
Pillow
|
|
|
|
workalendar
|
|
|
|
python-magic
|
|
|
|
docutils
|
|
|
|
langdetect
|
|
|
|
git+https://git.entrouvert.org/godo.js.git
|
2023-02-24 14:05:35 +01:00
|
|
|
django>=3.2,<3.3
|
2022-04-28 18:21:12 +02:00
|
|
|
astroid!=2.5.7
|
|
|
|
pylint
|
|
|
|
Quixote>=3.0,<3.2
|
|
|
|
pre-commit
|
|
|
|
pyzbar
|
2023-12-23 11:33:58 +01:00
|
|
|
schwifty
|
2023-07-18 14:57:43 +02:00
|
|
|
allowlist_externals =
|
|
|
|
./getlasso3.sh
|
2024-04-04 15:11:08 +02:00
|
|
|
./pylint.sh
|
2022-04-28 18:21:12 +02:00
|
|
|
commands =
|
2022-10-12 12:26:39 +02:00
|
|
|
./getlasso3.sh
|
2022-04-28 18:21:12 +02:00
|
|
|
./pylint.sh wcs/ tests/
|
2023-03-16 14:31:45 +01:00
|
|
|
|
|
|
|
[pytest]
|
|
|
|
filterwarnings =
|
|
|
|
error::_pytest.warning_types.PytestCollectionWarning
|