tox: move pylint to separate environment (#64666)

This commit is contained in:
Valentin Deniaud 2022-04-28 18:21:12 +02:00 committed by Frédéric Péters
parent d51b91ae6f
commit 3a5b67b0b1
2 changed files with 32 additions and 2 deletions

View File

@ -30,6 +30,7 @@ class compile_translations(Command):
def run(self):
try:
os.environ.pop('DJANGO_SETTINGS_MODULE', None)
from django.core.management import call_command
for path, dirs, files in os.walk('wcs'):

33
tox.ini
View File

@ -1,6 +1,6 @@
[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/wcs/{env:BRANCH_NAME:main}/{env:EXECUTOR_NUMBER:}
envlist = py3-django22-codestyle-pylint-coverage
envlist = py3-django22-codestyle-coverage, pylint
[testenv]
sitepackages = true
@ -48,5 +48,34 @@ deps =
bleach
commands =
py.test -v {env:COVERAGE:} --junitxml=junit-{envname}.xml {posargs:tests/}
pylint: ./pylint.sh wcs/ tests/
codestyle: pre-commit run --all-files --show-diff-on-failure
[testenv:pylint]
sitepackages = true
deps =
pytest>=3.6
pytest-mock
pytest-cov
pytest-django
pytest-freezegun
WebTest
mechanize
pyquery
mock
requests
vobject
qrcode
Pillow
workalendar
python-magic
docutils
langdetect
git+https://git.entrouvert.org/godo.js.git
django>=2.2,<2.3
astroid!=2.5.7
pylint
Quixote>=3.0,<3.2
pre-commit
pyzbar
commands =
./pylint.sh wcs/ tests/