-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
80 lines (80 loc) · 2.03 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
exclude: gh_action/dist/.*.js
- id: check-ast
- id: check-json
exclude: .vscode/.*\.json
- id: check-toml
- id: check-yaml
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: end-of-file-fixer
# exclude all generated files
exclude: |
(?x)^(
.ghjk/lock.json|
.ghjk/hash.json|
.ghjk/deno.lock|
deno.lock|
gh_action/.*.js
)$
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.2
hooks:
- id: check-dependabot
- id: check-github-workflows
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.13.0
hooks:
- id: commitizen
stages:
- commit-msg
- repo: local
hooks:
- id: ghjk-resolve
name: Ghjk resolve
language: system
entry: bash -c 'deno task ghjk p resolve'
pass_filenames: false
- id: lock-sed
name: Sed lock
language: system
entry: bash -c 'deno task ghjk x lock-sed'
pass_filenames: false
- id: deno-fmt
name: Deno format
language: system
entry: bash -c 'deno fmt'
pass_filenames: false
types:
- ts
- id: deno-check
name: Deno check
language: system
entry: bash -c 'deno task check'
pass_filenames: false
types:
- ts
- id: deno-lint
name: Deno lint
language: system
entry: bash -c 'deno lint'
pass_filenames: false
types:
- ts
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
- id: clippy
args:
- "--locked"
- "--all-features"
- "--all-targets"
- "--"
- "--deny"
- "warnings"