Projet

Général

Profil

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

A. Berriot, 06 juillet 2022 11:12

Télécharger (1005 octets)

Voir les différences:

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

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

  
5
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
51 51
    codestyle: pre-commit run --all-files --show-diff-on-failure
52 52

  
53 53
[testenv:pylint]
54
setenv =
55
  NUMPROCESSES={env:NUMPROCESSES:6}
54 56
sitepackages = true
55 57
deps =
56 58
    pytest>=3.6
57
-