-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
41 lines (41 loc) · 1.06 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
repos:
- repo: local
hooks:
- id: nixpkgs-fmt
name: nixpkgs-fmt
description: Format nix code with nixpkgs-fmt.
entry: nixpkgs-fmt
language: system
files: \.nix$
- id: prettier
name: prettier
description: Opinionated code formatter.
entry: prettier
args:
- --ignore-unknown
- --list-different
- --write
language: system
types: [text]
require_serial: false
exclude: (^|/)(flake\.lock|lazy-lock\.json)$
- id: shellcheck
name: shellcheck
description: Static analysis tool for shell scripts.
entry: shellcheck
language: system
types: [shell]
exclude_types: [zsh]
- id: shfmt
name: shfmt
description: Shell source code formatter.
entry: shfmt
args:
# Google-style
- --write
- --indent=2
- --case-indent
- --binary-next-line
language: system
types: [shell]
exclude_types: [zsh]