-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
42 lines (41 loc) · 1.39 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
repos:
# general pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-case-conflict
- id: check-json
exclude: devcontainer.json
- id: check-toml
- id: check-xml
- id: check-yaml
args: [--allow-multiple-documents]
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
exclude: src/webhook/webhook.key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: requirements-txt-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: ^.*\.csv$
# license checks
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: insert-license
name: add license header to c files
files: \.[ch]$
exclude: ^(third_party\/)|(src\/core\/src\/structs\/yaml.h)
args: [--license-filepath, LICENSE_HEADER.txt, --comment-style, "//"]
- id: insert-license
name: add license header to java files
files: \.java$
exclude: ^third_party\/
args: [--license-filepath, LICENSE_HEADER.txt, --comment-style, "//"]
- id: insert-license
name: add license header to python files
files: \.py$
exclude: ^third_party\/
args: [--license-filepath, LICENSE_HEADER.txt, --comment-style, "#"]