-
Notifications
You must be signed in to change notification settings - Fork 137
/
.pre-commit-config.yaml
43 lines (39 loc) · 1.22 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
---
exclude: scripts|argocd/overlays/dev/configs|argocd/overlays/moc-infra/configs|.github/workflows
repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.4.2
hooks:
- id: remove-tabs
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: check-merge-conflict
- id: end-of-file-fixer
- id: check-added-large-files
args:
- '--maxkb=600'
- id: check-case-conflict
- id: check-json
- id: check-symlinks
- id: detect-private-key
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.29.0
hooks:
- id: yamllint
files: \.(yaml|yml)$
types: [file, yaml]
entry: yamllint --strict -c yamllint-config.yaml
- repo: https://github.com/os-climate/osc-trino-acl-dsl
rev: v0.3.1
hooks:
# manage rules.json files using a DSL for trino ACL
# this check enforces that rules.json is consistent with dsl file
# https://github.com/os-climate/osc-trino-acl-dsl/blob/main/.pre-commit-hooks.yaml
- id: trino-acl-dsl-check
files: |
(?x)^(.*/)?(
trino-acl-dsl\.yaml|
rules\.json
)$