-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
27 lines (25 loc) · 724 Bytes
/
.pre-commit-config.yaml
File metadata and controls
27 lines (25 loc) · 724 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
# See https://pre-commit.com for more information
# Install: pip install pre-commit && pre-commit install
repos:
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.9.0
hooks:
- id: shellcheck
args: ["--severity=error"]
files: \.(sh|bash)$
exclude: ^tests/mocks/
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.7.0-1
hooks:
- id: shfmt
args: ["-i", "4", "-ci", "-bn"]
files: \.(sh|bash)$
exclude: ^tests/mocks/
- repo: local
hooks:
- id: bats-tests
name: Run bats tests
entry: bash -c 'bats tests/unit/'
language: system
pass_filenames: false
files: \.(sh|bash|bats)$