From 976e8babbe6a128a204151caebb43cd528dc7487 Mon Sep 17 00:00:00 2001 From: AtomicVar Date: Sat, 9 Dec 2023 23:06:46 +0800 Subject: [PATCH] Use compiled black as the pre-commit formatter (#94) --- .pre-commit-config.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bb29c8fcd..8da07ad46 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,8 @@ repos: rev: v14.0.6 hooks: - id: clang-format -- repo: https://github.com/psf/black +# Using this mirror lets us use mypyc-compiled black, which is about 2x faster +- repo: https://github.com/psf/black-pre-commit-mirror rev: 22.10.0 hooks: - id: black @@ -12,4 +13,4 @@ repos: hooks: - id: isort args: - - --profile=black \ No newline at end of file + - --profile=black