mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix: set default pre-commit hook stages to pre-commit only
If pre-commit hook does not specify stage[1], neither in .pre-commit-config.yaml nor in .pre-commit-hooks.yaml, it's started for every installed pre-commit hook. Limit the default stages to pre-commit only by default. This also sets the default_install_hook_types and minimum_pre_commit_version and sets conventional-precommit-linter to v1.4.1. [1] https://pre-commit.com/#confining-hooks-to-run-at-certain-stages Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
This commit is contained in:
parent
0340043e59
commit
b93cc581a5
@ -1,6 +1,10 @@
|
||||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
|
||||
minimum_pre_commit_version: 3.3.0
|
||||
default_install_hook_types: [pre-commit, commit-msg]
|
||||
default_stages: [pre-commit]
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.0.1
|
||||
@ -194,7 +198,7 @@ repos:
|
||||
- id: check-copyright
|
||||
args: ['--ignore', 'tools/ci/check_copyright_ignore.txt', '--config', 'tools/ci/check_copyright_config.yaml']
|
||||
- repo: https://github.com/espressif/conventional-precommit-linter
|
||||
rev: v1.3.0
|
||||
rev: v1.4.1
|
||||
hooks:
|
||||
- id: conventional-precommit-linter
|
||||
stages: [commit-msg]
|
||||
|
Loading…
x
Reference in New Issue
Block a user