Skip to content

Commit

Permalink
[.pre-commit-config.yaml]: Update
Browse files Browse the repository at this point in the history
* Update https://github.com/pre-commit/pre-commit-hooks from `v4.4.0` to
  `v4.5.0`.

* Downgrade https://github.com/markdownlint/markdownlint from `v0.12.0`
  to `v0.9.0` (see comment in `.pre-commit-config.yaml`).

* Change source of `black` from https://github.com/psf/black to
  https://github.com/psf/black-pre-commit-mirror, because this is now
  the official source of the `black` pre-commit hook (see
  psf/black#2493 (comment)).
  • Loading branch information
andthum committed Oct 13, 2023
1 parent cda4b74 commit 58bb797
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ci:

repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.4.0"
rev: "v4.5.0"
hooks:
### Git ###
# Protect specific branches from direct check-ins.
Expand Down Expand Up @@ -160,15 +160,7 @@ repos:
# Required for isort's `--color` option.
- "colorama"

- repo: "https://github.com/psf/black"
# Don't remove `refs/tags/<tag>:refs/tags/<tag>` in front of the
# hook's version number. Without the prefix the black pre-commit
# hook will fail with exit code 1: "The required version XX does not
# match the running version YY!" This happens, because in
# `pyproject.toml` we explicitly set the required version of black
# to XX but somehow the pre-commit hook has version YY when
# specifying the hook version without the prefix. See
# https://github.com/psf/black/issues/2493#issuecomment-1081987650
- repo: "https://github.com/psf/black-pre-commit-mirror"
rev: "23.9.1"
hooks:
# Format Python code with black.
Expand Down Expand Up @@ -270,7 +262,7 @@ repos:
# v0.12.0 requires ruby2.7
# v0.11.0 and v0.10.0 require ruby2.6
# => stay at v0.9.0
rev: "v0.12.0"
rev: "v0.9.0"
hooks:
# Lint Markdown files with markdownlint.
- id: "markdownlint"

0 comments on commit 58bb797

Please sign in to comment.