This is an automated email from the ASF dual-hosted git repository.
xiaokang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-graphar.git
The following commit(s) were added to refs/heads/main by this push:
new 06c5e791 chore(pre-commit): add default install config for pre-commit
(#862)
06c5e791 is described below
commit 06c5e791fa76d3f3689c2403e06ddf885b79e54e
Author: Jason <[email protected]>
AuthorDate: Wed Feb 25 10:16:06 2026 +0800
chore(pre-commit): add default install config for pre-commit (#862)
* chore(pre-commit): add default install config for pre-commit and update
conventional-pre-commit to latest version
* Update .pre-commit-config.yaml
keep the explicit types configuration
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Jason <[email protected]>
---------
Signed-off-by: Jason <[email protected]>
Co-authored-by: Copilot <[email protected]>
---
.pre-commit-config.yaml | 29 ++++++++++++++++++++++-------
1 file changed, 22 insertions(+), 7 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 5774dd94..e7c58f54 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -15,6 +15,10 @@
# specific language governing permissions and limitations
# under the License.
+default_install_hook_types:
+ - pre-commit
+ - commit-msg
+
repos:
- repo: https://github.com/zricethezav/gitleaks
rev: v8.15.0
@@ -54,15 +58,26 @@ repos:
types_or: [c++, c]
- repo: https://github.com/compilerla/conventional-pre-commit
- rev: v3.0.0
+ rev: v4.3.0
hooks:
- id: conventional-pre-commit
- stages: [ commit-msg ]
- args: [
- --types,feat,fix,docs,style,refactor,test,chore,perf,ci,build,revert,
- --scope-optional
- ]
-
+ stages: [commit-msg]
+ args:
+ - --verbose
+ - --scope-optional
+ - --types
+ - feat
+ - fix
+ - docs
+ - style
+ - refactor
+ - test
+ - chore
+ - perf
+ - ci
+ - build
+ - revert
+
- repo: local
hooks:
- id: spotless-java-info
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]