Skip to content

Commit

Permalink
🔧 Use the tag version for black in pre-commit
Browse files Browse the repository at this point in the history
The recent revisions of the pre-commit integration with black has specified to use the version instead of a constant branch name like `stable` so that it could be updated seemlessly using `pre-commit autoupdate`. For reference,

- https://pre-commit.com/#using-the-latest-version-for-a-repository
- pre-commit/pre-commit#1354
- https://github.com/psf/black#version-control-integration
- psf/black#420
  • Loading branch information
chinnichaitanya committed Feb 7, 2021
1 parent 0e51bdc commit c774400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/python/black
rev: stable
rev: 20.8b1
hooks:
- id: black
language_version: python3.6
Expand Down

0 comments on commit c774400

Please sign in to comment.