From bc7e5c949fa14da0a0174354a83567303bafb648 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Fri, 18 Jan 2019 12:52:56 -0800 Subject: [PATCH] Turn off pre-commit's automatic parallelization for black (#675) black internally uses multiprocessing for speed. In pre-commit 1.13.0 this is automated by the framework itself however if both pre-commit and black are forking processes this is slower and hits race-conditions in `black`. --- .pre-commit-hooks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 0d43112..c8a8ff0 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -4,4 +4,5 @@ entry: black language: python language_version: python3 + require_serial: true types: [python] -- 2.39.5