wcs/tox.ini

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

88 lines
1.8 KiB
INI
Raw Permalink Normal View History

2016-03-29 18:52:09 +02:00
[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/wcs/{env:BRANCH_NAME:main}/{env:EXECUTOR_NUMBER:}
envlist = py3-django32-codestyle-coverage, pylint
2016-03-29 18:52:09 +02:00
[testenv]
setenv =
NUMPROCESSES={env:NUMPROCESSES:1}
SETUPTOOLS_USE_DISTUTILS=stdlib
2019-09-26 15:25:12 +02:00
PYTHONPATH={toxinidir}{:}{env:PYTHONPATH:}
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:}
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 =
# test dependencies
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
pytest-xdist
pytest-freezegun
2016-03-29 18:52:09 +02:00
WebTest
mechanize
2016-03-29 18:52:09 +02:00
pyquery
mock
responses
astroid!=2.5.7
pylint
pre-commit
pyzbar
schwifty
bleach<5
# others...
django32: django>=3.2,<3.3
allowlist_externals =
./getlasso3.sh
2016-03-29 18:52:09 +02:00
commands =
./getlasso3.sh
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
[testenv:pylint]
setenv =
NUMPROCESSES={env:NUMPROCESSES:6}
sitepackages = true
deps =
pytest>=3.6
pytest-mock
pytest-cov
pytest-django
pytest-freezegun
WebTest
mechanize
pyquery
mock
requests
responses
vobject
qrcode
Pillow
workalendar
python-magic
docutils
langdetect
git+https://git.entrouvert.org/godo.js.git
django>=3.2,<3.3
astroid!=2.5.7
pylint
Quixote>=3.0,<3.2
pre-commit
pyzbar
schwifty
allowlist_externals =
./getlasso3.sh
./pylint.sh
commands =
./getlasso3.sh
./pylint.sh wcs/ tests/
[pytest]
filterwarnings =
error::_pytest.warning_types.PytestCollectionWarning