-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
39 lines (39 loc) · 1.02 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
# reference: https://verdantfox.com/blog/view/how-to-use-git-pre-commit-hooks-the-hard-way-and-the-easy-way
---
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-json
- id: check-yaml
args:
- --unsafe
- id: double-quote-string-fixer
- id: end-of-file-fixer
- repo: https://github.com/nix-community/nixpkgs-fmt
rev: v1.3.0
hooks:
- id: nixpkgs-fmt
- repo: local
hooks:
- id: statix
name: statix-lint
entry: statix fix --ignore "templates/" .
language: system
types: [nix]
- repo: local
hooks:
- id: deadnix
name: deadnix-lint
entry: deadnix --edit --exclude "templates/" .
language: system
types: [nix]
# - repo: local
# hooks:
# - id: markdown-lint
# name: markdown-lint
# entry: npm run markdown-lint
# language: markdown
# types: [md]