Projet

Général

Profil

0001-tox-move-pylint-to-separate-environment-64666.patch

Valentin Deniaud, 11 mai 2022 11:02

Télécharger (1,76 ko)

Voir les différences:

Subject: [PATCH] tox: move pylint to separate environment (#64666)

 setup.py |  1 +
 tox.ini  | 33 +++++++++++++++++++++++++++++++--
 2 files changed, 32 insertions(+), 2 deletions(-)
setup.py
30 30

  
31 31
    def run(self):
32 32
        try:
33
            os.environ.pop('DJANGO_SETTINGS_MODULE', None)
33 34
            from django.core.management import call_command
34 35

  
35 36
            for path, dirs, files in os.walk('wcs'):
tox.ini
1 1
[tox]
2 2
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/wcs/{env:BRANCH_NAME:main}/{env:EXECUTOR_NUMBER:}
3
envlist = py3-django22-codestyle-pylint-coverage
3
envlist = py3-django22-codestyle-coverage, pylint
4 4

  
5 5
[testenv]
6 6
sitepackages = true
......
48 48
    bleach
49 49
commands =
50 50
    py.test -v {env:COVERAGE:} --junitxml=junit-{envname}.xml {posargs:tests/}
51
    pylint: ./pylint.sh wcs/ tests/
52 51
    codestyle: pre-commit run --all-files --show-diff-on-failure
52

  
53
[testenv:pylint]
54
sitepackages = true
55
deps =
56
    pytest>=3.6
57
    pytest-mock
58
    pytest-cov
59
    pytest-django
60
    pytest-freezegun
61
    WebTest
62
    mechanize
63
    pyquery
64
    mock
65
    requests
66
    vobject
67
    qrcode
68
    Pillow
69
    workalendar
70
    python-magic
71
    docutils
72
    langdetect
73
    git+https://git.entrouvert.org/godo.js.git
74
    django>=2.2,<2.3
75
    astroid!=2.5.7
76
    pylint
77
    Quixote>=3.0,<3.2
78
    pre-commit
79
    pyzbar
80
commands =
81
    ./pylint.sh wcs/ tests/
53
-