Skip to content

Commit

Permalink
Set pre-commit serial to avoid OOM on CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Nov 23, 2020
1 parent e89b64f commit 8d926d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ commands:
environment:
PRE_COMMIT_HOME: &pre_commit_cache_dir /cache/precommit
name: "Run pre-commit checks"
no_output_timeout: 30m
command: python -m pre_commit run --all-files
- save_cache:
key: *pre_commit_cache_key
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ repos:
args: [--style=file, -i]
- id: clang-tidy
args: [--fix, --fix-errors]
require_serial: true # Set parallelism to one otherwise it gwt out of memory on CircleCI.
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
Expand Down

0 comments on commit 8d926d3

Please sign in to comment.