From: Anthony Sottile Date: Fri, 18 Jan 2019 20:52:56 +0000 (-0800) Subject: Turn off pre-commit's automatic parallelization for black (#675) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/bc7e5c949fa14da0a0174354a83567303bafb648?ds=inline 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`. --- 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]