Skip to content

Commit

Permalink
Use jobs with pylint, speeding it up
Browse files Browse the repository at this point in the history
This cuts down the time it takes to run lint by about a minute. "Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the number of processors available to use, and will cap the count on Windows to avoid hangs.

PiperOrigin-RevId: 675654990
  • Loading branch information
wyattscarpenter authored and copybara-github committed Sep 17, 2024
1 parent 6070adb commit 6136398
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

- name: Lint
if: runner.os == 'Linux' && matrix.python-version == '3.12'
run: pylint build_scripts pytype pytype_extensions setup.py
run: pylint build_scripts pytype pytype_extensions setup.py -j 0

- name: Build
run: python build_scripts/build.py
Expand Down
2 changes: 1 addition & 1 deletion build_scripts/ci_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e -x

# Lint
pylint build_scripts pytype pytype_extensions setup.py
pylint build_scripts pytype pytype_extensions setup.py -j 0

# Build
python build_scripts/build.py
Expand Down

0 comments on commit 6136398

Please sign in to comment.