From e6d103e2bce3418e31185fa14a483698de95e5d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 13 Nov 2024 23:32:12 +0200 Subject: [PATCH] chore(pre-commit): avoid stage name deprecation warning pre-commit 4.0.1 warns: > top-level `default_stages` uses deprecated stage names (commit) > which will be removed in a future version. Use new names, means pre-commit >= 3.2.0 is required now. --- .github/requirements.txt | 2 +- .pre-commit-config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/requirements.txt b/.github/requirements.txt index 09ff6d53065..fc044a45bcd 100644 --- a/.github/requirements.txt +++ b/.github/requirements.txt @@ -1,4 +1,4 @@ -r ../test/requirements-dev.txt gitlint==0.19.1 -pre-commit>=2.4.0 +pre-commit>=3.2.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8669753e666..bb290e36aea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,5 @@ -default_stages: [commit] -minimum_pre_commit_version: 2.4.0 +default_stages: [pre-commit] +minimum_pre_commit_version: 3.2.0 # for "default_stages" names repos: