tox: move pylint to separate environment (#64666)
This commit is contained in:
parent
d51b91ae6f
commit
3a5b67b0b1
1
setup.py
1
setup.py
|
@ -30,6 +30,7 @@ class compile_translations(Command):
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
try:
|
try:
|
||||||
|
os.environ.pop('DJANGO_SETTINGS_MODULE', None)
|
||||||
from django.core.management import call_command
|
from django.core.management import call_command
|
||||||
|
|
||||||
for path, dirs, files in os.walk('wcs'):
|
for path, dirs, files in os.walk('wcs'):
|
||||||
|
|
33
tox.ini
33
tox.ini
|
@ -1,6 +1,6 @@
|
||||||
[tox]
|
[tox]
|
||||||
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/wcs/{env:BRANCH_NAME:main}/{env:EXECUTOR_NUMBER:}
|
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]
|
[testenv]
|
||||||
sitepackages = true
|
sitepackages = true
|
||||||
|
@ -48,5 +48,34 @@ deps =
|
||||||
bleach
|
bleach
|
||||||
commands =
|
commands =
|
||||||
py.test -v {env:COVERAGE:} --junitxml=junit-{envname}.xml {posargs:tests/}
|
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
|
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/
|
||||||
|
|
Loading…
Reference in New Issue