Skip to content

Commit

Permalink
Use the official faster mirror for black hook
Browse files Browse the repository at this point in the history
> ```
> repos:
>   # Using this mirror lets us use mypyc-compiled black, which is about 2x faster
>   - repo: https://github.com/psf/black-pre-commit-mirror
> ```
> —https://black.readthedocs.io/en/stable/integrations/source_version_control.html#version-control-integration

(PR #73)
  • Loading branch information
Toreno96 authored Dec 16, 2023
1 parent 7a72b8b commit b763554
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ repos:
# In the future, this should be switched to some persistent external storage
- id: check-added-large-files
args: ['--maxkb=1000']
- repo: https://github.com/psf/black
# Using this official mirror over https://github.com/psf/black lets us use
# mypyc-compiled `black`, which is about 2x faster; see:
# https://black.readthedocs.io/en/stable/integrations/source_version_control.html
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.0
hooks:
- id: black
Expand Down

0 comments on commit b763554

Please sign in to comment.