-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (29 loc) · 953 Bytes
/
.pre-commit-config.yaml
File metadata and controls
33 lines (29 loc) · 953 Bytes
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
# Pre-commit hooks for ContainAI
# Install: pip install pre-commit && pre-commit install
# Run manually: pre-commit run --all-files
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=500']
- id: check-merge-conflict
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
hooks:
- id: shellcheck
args: ['-x'] # Follow sourced files
files: \.(sh|bash)$
types: [text]
# Include all shell scripts
exclude: ^(.flow/|scripts/ralph/)
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.8.0-1
hooks:
- id: shfmt
args: ['-i', '4', '-ci', '-bn'] # 4-space indent, case indent, binary ops at start
files: \.(sh|bash)$
exclude: ^(.flow/|scripts/ralph/)