From 59e8936768889f583488df609c45302da8e88507 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Thu, 3 Aug 2023 18:46:08 -0700 Subject: [PATCH 1/1] Document pre-commit mirror (#3828) --- .pre-commit-hooks.yaml | 2 ++ CHANGES.md | 5 +++++ docs/integrations/source_version_control.md | 13 ++++++++----- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 1379570..a1ff41f 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,3 +1,5 @@ +# Note that we recommend using https://github.com/psf/black-pre-commit-mirror instead +# This will work about 2x as fast as using the hooks in this repository - id: black name: black description: "Black: The uncompromising Python code formatter" diff --git a/CHANGES.md b/CHANGES.md index 709c767..1de0879 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -44,6 +44,11 @@ +- Black now has an + [official pre-commit mirror](https://github.com/psf/black-pre-commit-mirror). Swapping + `https://github.com/psf/black` to `https://github.com/psf/black-pre-commit-mirror` in + your `.pre-commit-config.yaml` will make Black about 2x faster (#3828) + ### Documentation