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 14, 2024
1 parent 8f34adc commit e6d103e
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 e6d103e

Please sign in to comment.