Skip to content

Commit

Permalink
fix(style): use black mirror that's 2x faster
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Nov 12, 2023
1 parent a95bced commit 67dc163
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
alabaster==0.7.13 ; python_version >= "3.8" and python_version < "4.0"
attrs==23.1.0 ; python_version >= "3.8" and python_version < "4.0"
autorepr==0.3.0 ; python_version >= "3.8" and python_version < "4.0"
babel==2.13.1 ; python_version >= "3.8" and python_version < "4.0"
babel==2.13.0 ; python_version >= "3.8" and python_version < "4.0"
cattrs==23.1.2 ; python_version >= "3.8" and python_version < "4.0"
certifi==2023.7.22 ; python_version >= "3.8" and python_version < "4.0"
charset-normalizer==3.3.2 ; python_version >= "3.8" and python_version < "4.0"
charset-normalizer==3.3.0 ; python_version >= "3.8" and python_version < "4.0"
click==8.1.7 ; python_version >= "3.8" and python_version < "4.0"
colorama==0.4.6 ; python_version >= "3.8" and python_version < "4.0" and (platform_system == "Windows" or sys_platform == "win32")
configupdater==3.1.1 ; python_version >= "3.8" and python_version < "4.0"
Expand Down
4 changes: 3 additions & 1 deletion src/nitpick/resources/python/black.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ url = "https://github.com/psf/black"
line-length = 120

[[".pre-commit-config.yaml".repos]]
repo = "https://github.com/psf/black"
# Mirror that's 2x faster, recommended by
# https://github.com/psf/black/blob/58f31a70efe6509ce8213afac998bc5d5bb7e34d/.pre-commit-hooks.yaml#L1-L2
repo = "https://github.com/psf/black-pre-commit-mirror"

[[".pre-commit-config.yaml".repos.hooks]]
id = "black"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_builtin/python/black/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
repos:
- repo: https://github.com/psf/black
- repo: https://github.com/psf/black-pre-commit-mirror
hooks:
- id: black
args:
Expand Down

0 comments on commit 67dc163

Please sign in to comment.