-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
83 lines (75 loc) · 1.93 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
fail_fast: false
exclude: |
(?x)^(
docs/_assets/.*
| resources/public/js/.*@.*\.js
| resources/public/css/.*.css
| resources/public/js/htmx\.js
| resources/lang/.*\.po
| resources/lang/.*\.edn
| resources/lang/.*\.pot
| resources/seeds\.edn
| .*\.sops\.toml
)$
repos:
- repo: local
hooks:
- id: clj-kondo linting
name: clj-kondo linting
entry: clj-kondo --lint
language: system
types: [clojure]
require_serial: true
- id: cljfmt
name: cljfmt formatter
description: Run formatting rules with cljfmt
types: [clojure]
entry: cljfmt check
language: system
require_serial: true
- repo: https://github.com/adrienverge/yamllint
rev: v1.33.0
hooks:
- args:
- --config-file
- .github/lint/.yamllint.yaml
id: yamllint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
exclude: iot/
- id: end-of-file-fixer
exclude: iot/
- id: fix-byte-order-marker
exclude: iot/
- id: mixed-line-ending
exclude: iot/
- id: check-added-large-files
args: [--maxkb=2048]
- id: check-merge-conflict
- id: check-executables-have-shebangs
exclude: iot/
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: remove-crlf
exclude: iot/
- id: remove-tabs
exclude: (Makefile|Makefile.j2|iot/)
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
language: script
args: [--severity=error]
additional_dependencies: []
exclude: (env.sops.sh)
- repo: https://github.com/zricethezav/gitleaks
rev: v8.18.0
hooks:
- id: gitleaks
args:
- --config
- .github/lint/gitleaks.toml