From 58bb797825c74552d2b23ef207dacdf1c9b01569 Mon Sep 17 00:00:00 2001 From: andthum <56444687+andthum@users.noreply.github.com> Date: Fri, 13 Oct 2023 16:49:25 +0200 Subject: [PATCH] [.pre-commit-config.yaml]: Update * 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)). --- .pre-commit-config.yaml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0bd79ba0..85953697 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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. @@ -160,15 +160,7 @@ repos: # Required for isort's `--color` option. - "colorama" - - repo: "https://github.com/psf/black" - # Don't remove `refs/tags/:refs/tags/` 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. @@ -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"