Skip to content

Commit

Permalink
chore(pre-commit): avoid stage name deprecation warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
scop committed Nov 13, 2024
1 parent cb6e5d0 commit a77a302
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r ../test/requirements-dev.txt

gitlint==0.19.1
pre-commit>=2.4.0
pre-commit>=3.2.0
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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:

Expand Down

0 comments on commit a77a302

Please sign in to comment.