tox: move pylint to separate environment (#63008)

This commit is contained in:
Valentin Deniaud 2022-03-21 16:00:12 +01:00
parent f497445833
commit d4f05d10a4
1 changed files with 20 additions and 2 deletions

22
tox.ini
View File

@ -1,5 +1,5 @@
[tox]
envlist = py3-django22-codestyle-coverage-pylint
envlist = py3-django22-codestyle-coverage, pylint
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/chrono/{env:BRANCH_NAME:}
[testenv]
@ -33,5 +33,23 @@ commands =
./getlasso3.sh
python3 setup.py compile_translations
py.test {env:COVERAGE:} {posargs:tests/}
pylint: ./pylint.sh chrono/ tests/
codestyle: pre-commit run --all-files --show-diff-on-failure
[testenv:pylint]
deps =
pytest-django
pytest!=5.3.3
WebTest
mock<4
httmock
pylint
pylint-django
django-webtest
pytz
pyquery
django-mellon>=1.6.1
pytest-freezegun
psycopg2-binary<2.9
commands =
./getlasso3.sh
pylint: ./pylint.sh chrono/ tests/