-
Notifications
You must be signed in to change notification settings - Fork 13
/
.pre-commit-config.yaml
executable file
·93 lines (92 loc) · 2.17 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-case-conflict
- id: check-executables-have-shebangs
files: \.sh
- id: check-json
- id: check-vcs-permalinks
- id: check-yaml
exclude: ^helm
- id: check-ast
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.13.0
hooks:
- id: pretty-format-yaml
exclude: ^helm
args: [--autofix, --indent, '2']
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
exclude: .git/COMMIT_EDITMSG
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: [--baseline, .secrets.baseline]
exclude: package.lock.json|localdev/mock-users.json
- repo: local
hooks:
- id: eslint
name: eslint
entry: .bin/eslint.sh
language: script
files: ^(cypress|localdev)/.*\.(js|ts)$
verbose: true
pass_filenames: true
- id: eslint-app
name: eslint-app
entry: .bin/eslint-app.sh
language: script
files: ^app/.*\.(ts|tsx)$
verbose: true
pass_filenames: true
- id: python-format
name: black
entry: .bin/black.sh
language: script
files: \.py$
verbose: true
pass_filenames: true
- id: prisma-format
name: prisma
entry: .bin/prisma.sh
language: script
files: \.prisma$
verbose: true
pass_filenames: true
- id: bash-format
name: format bash
entry: .bin/bash-format.sh
language: script
files: \.sh$
verbose: true
pass_filenames: true
- id: knip
name: knip
entry: .bin/knip.sh
language: script
files: app/.*
verbose: true
pass_filenames: false
- id: commitlint
name: commitlint
entry: .bin/commitlint.sh
language: script
verbose: true
pass_filenames: false
stages: [commit-msg]
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
exclude: .git/COMMIT_EDITMSG
exclude: ^(app/.react-email|CHANGELOG\.md|.*pnpm-lock\.yaml)$