Skip to content

Commit 6f0b470

Browse files
committed
Change pre-commit concurrency to CI only
1 parent 8d926d3 commit 6f0b470

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ commands:
194194
- precommit-v1.1-{{ arch }}-
195195
- run:
196196
environment:
197+
# Remove parallelism for clang-tidy that goes out of memory otherwise
198+
PRE_COMMIT_NO_CONCURRENCY: "True"
197199
PRE_COMMIT_HOME: &pre_commit_cache_dir /cache/precommit
198200
name: "Run pre-commit checks"
199201
no_output_timeout: 30m

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ repos:
1919
args: [--style=file, -i]
2020
- id: clang-tidy
2121
args: [--fix, --fix-errors]
22-
require_serial: true # Set parallelism to one otherwise it gwt out of memory on CircleCI.
2322
- repo: https://github.com/psf/black
2423
rev: 19.10b0
2524
hooks:

0 commit comments

Comments
 (0)