Skip to content

Commit 59e1df4

Browse files
committed
black recommends setting the language version of python and using the mypcy-compiled black-mirror
1 parent 9b526fa commit 59e1df4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.pre-commit-config.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
# It is recommended to specify the latest version of Python
2+
# supported by your project here
3+
default_language_version:
4+
python: python3.11
15
repos:
2-
- repo: https://github.com/psf/black
6+
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
7+
- repo: https://github.com/psf/black-pre-commit-mirror
38
rev: 24.4.2
49
hooks:
510
- id: black

0 commit comments

Comments
 (0)