Projet

Général

Profil

0002-ci-speed-up-CI-using-multiple-processes-with-pylint-.patch

A. Berriot, 06 juillet 2022 17:46

Télécharger (995 octets)

Voir les différences:

Subject: [PATCH 2/2] ci: speed up CI using multiple processes with pylint
 (#42144)

 pylint.sh | 2 +-
 tox.ini   | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
pylint.sh
1 1
#!/bin/bash
2 2
set -e
3 3

  
4
pylint -f parseable --rcfile pylint.rc "$@" | tee pylint.out; test $PIPESTATUS -eq 0
4
pylint --jobs ${NUMPROCESSES:-1} -f parseable --rcfile pylint.rc "$@" | tee pylint.out; test $PIPESTATUS -eq 0
tox.ini
120 120
setenv =
121 121
  DJANGO_SETTINGS_MODULE=authentic2.settings
122 122
  SETUPTOOLS_USE_DISTUTILS=stdlib
123
  NUMPROCESSES={env:NUMPROCESSES:1}
123 124
deps =
124 125
    pylint
125 126
    pylint-django
126
-