]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Turn off pre-commit's automatic parallelization for black (#675)
authorAnthony Sottile <asottile@umich.edu>
Fri, 18 Jan 2019 20:52:56 +0000 (12:52 -0800)
committerZsolt Dollenstein <zsol.zsol@gmail.com>
Fri, 18 Jan 2019 20:52:56 +0000 (20:52 +0000)
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

index 0d431128a38eebd0eec6cc6e4be9175edf64d82b..c8a8ff0b80215749753678acbdd778699f3daf24 100644 (file)
@@ -4,4 +4,5 @@
     entry: black
     language: python
     language_version: python3
+    require_serial: true
     types: [python]