-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
44 lines (44 loc) · 1.05 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
---
default_stages:
- commit
- push
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v3.2.0
hooks:
- id: trailing-whitespace
exclude: '^doc'
- id: check-json
- id: check-yaml
- id: check-json
- id: check-merge-conflict
- id: fix-encoding-pragma
- id: check-symlinks
- repo: 'https://github.com/jumanjihouse/pre-commit-hooks.git'
rev: 2.1.4
hooks:
- id: shellcheck
- id: shfmt
- repo: 'https://github.com/asottile/yesqa'
rev: v1.2.2
hooks:
- id: yesqa
- repo: 'https://github.com/adrienverge/yamllint'
rev: v1.25.0
hooks:
- id: yamllint
- repo: 'https://github.com/jorisroovers/gitlint.git'
rev: v0.13.1
hooks:
- id: gitlint
stages:
- commit-msg
- repo: local
hooks:
- id: check-dockerfile
name: 'Check dockerfile'
entry: 'bash -c "docker run --rm -i hadolint/hadolint < Dockerfile"'
pass_filenames: false
language: system
types:
- dockerfile