tox: move pylint to separate environment (#61493)

This commit is contained in:
Valentin Deniaud 2022-02-07 15:32:35 +01:00
parent 0f202b12fd
commit 4244cfdd8f
1 changed files with 27 additions and 2 deletions

29
tox.ini
View File

@ -1,6 +1,6 @@
[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/combo/{env:BRANCH_NAME:}
envlist = coverage-py3-django22-codestyle-pylint
envlist = coverage-py3-django22-codestyle, pylint
[testenv]
usedevelop = True
@ -38,5 +38,30 @@ commands =
./getlasso3.sh
python manage.py compilemessages
py.test {env:COVERAGE:} {posargs: --junitxml=junit-{envname}.xml tests/}
pylint: ./pylint.sh combo/ tests/
codestyle: pre-commit run --all-files --show-diff-on-failure
[testenv:pylint]
setenv =
DJANGO_SETTINGS_MODULE=combo.settings
COMBO_SETTINGS_FILE=tests/settings.py
TOX_WORK_DIR={toxworkdir}
SETUPTOOLS_USE_DISTUTILS=stdlib
DB_ENGINE=django.db.backends.postgresql_psycopg2
deps =
pytest-django
pytest-freezegun
pytest!=5.3.3
WebTest
mock<4
httmock
django-mellon>=1.13
pylint
pylint-django
django-webtest<1.9.3
pyquery
psycopg2-binary<2.9
git+https://git.entrouvert.org/debian/django-ckeditor.git
uwsgidecorators
commands =
./getlasso3.sh
./pylint.sh combo/ tests/