generated from jnooree/c-like-templ
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.pre-commit-config.yaml
47 lines (45 loc) · 1.41 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# Project NuriKit - Copyright 2023 SNU Compbio Lab.
# SPDX-License-Identifier: Apache-2.0
#
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: no-commit-to-branch
args: ["-b", "main", "-p", "release/.*"]
- id: check-added-large-files
args: ["--maxkb=10240"] # 10MiB
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
args: ["--allow-multiple-documents"]
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: destroyed-symlinks
- id: end-of-file-fixer
exclude: ^(test/test_data/|fuzz/corpus-min/)
- id: fix-byte-order-marker
exclude: ^(test/test_data/|fuzz/corpus-min/)
- id: trailing-whitespace
exclude: ^(test/test_data/|fuzz/corpus-min/)
args: ["--markdown-linebreak-ext=md"]
- id: mixed-line-ending
exclude: ^(test/test_data/|fuzz/corpus-min/)
args: ["--fix=lf"]
- repo: https://github.com/seoklab/shared-hooks
rev: v0.1.4
hooks:
- id: commitlint
default_install_hook_types:
- pre-commit
- pre-push
- commit-msg
default_stages:
- pre-commit
ci:
autofix_commit_msg: |
fix(pre-commit): auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autoupdate_commit_msg: "chore(deps): pre-commit autoupdate"