-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pre-commit-config.yaml
58 lines (58 loc) · 1.58 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: end-of-file-fixer
- id: no-commit-to-branch
args: ['--branch', 'main']
- id: trailing-whitespace
- repo: local
hooks:
- id: nixpkgs-fmt
name: nixpkgs-fmt
description: Format nix code with nixpkgs-fmt.
language: system
entry: nixpkgs-fmt
files: \.nix$
stages:
- commit
- id: docupdate
name: docupdate
description: Update documentation.
language: system
entry: just doc-update
stages:
- commit
files: ^README\.md$
- id: check-secrets
name: check-test-age-public-key
description: Check test age public key
language: python
entry: ./.pre-commit-scripts/check-public-test-age-key.py
stages:
- commit
files: secrets\.yml$
- id: deno-fmt
name: deno-fmt
description: Format deno code with deno fmt.
language: system
entry: deno fmt
stages:
- commit
files: \.ts$
- id: deno-lint
name: deno-lint
description: Lint deno code with deno lint.
language: system
entry: deno lint
stages:
- commit
files: \.ts$