-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
43 lines (43 loc) · 1.32 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
---
# fail_fast: true
minimum_pre_commit_version: 1.18.1
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: trailing-whitespace
exclude: ".(md|rst)$"
- id: end-of-file-fixer
- id: check-merge-conflict
- id: mixed-line-ending
- id: check-added-large-files
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
hooks:
- id: git-check # Configure in .gitattributes
- id: shellcheck
- id: shfmt
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.7
hooks:
- id: remove-crlf
exclude: ".bat$"
- repo: local
hooks:
- id: bash-audit
name: Check .sh files against gaudi-bash requirements (bash shebang)
entry: ./hooks/bash-audit.sh
language: system
files: "\\.sh$"
types: [file]
exclude: ^(^test/fixtures/|^template/)
- id: shellcheck-audit
name: Check .bash files against gaudi-bash requirements (shellcheck shebang)
exclude: "test/test_helper.bash"
entry: ./hooks/shellcheck-audit.sh
language: system
files: "\\.bash$"
types: [file]
exclude: ^(^test/fixtures/|^template/)