From 28b9d45cc2a2c7564b38ea78a48cf4f65ef27d8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 15 Aug 2023 22:45:44 +0300 Subject: [PATCH] chore(pre-commit): switch black to -pre-commit-mirror Refs https://github.com/psf/black/issues/3405 --- .github/renovate.json | 2 +- .pre-commit-config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index e825caec17a..796abd940d1 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -40,7 +40,7 @@ "semanticCommitScope": "pre-commit" }, { - "matchPackagePatterns": ["(^|/)black$"], + "matchPackagePatterns": ["(^|/)black(-pre-commit-mirror)?$"], "versioning": "pep440", "groupName": "black" }, diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 79990b1da12..47e3ef9792e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -50,7 +50,7 @@ repos: files: ^(helpers/python|.+\.py)$ exclude: ^completions/ - - repo: https://github.com/psf/black + - repo: https://github.com/psf/black-pre-commit-mirror rev: 23.1.0 hooks: - id: black