forked from gotempsh/temps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
51 lines (46 loc) · 1.5 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
51 lines (46 loc) · 1.5 KB
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/crate-ci/typos
rev: v1.38.1
hooks:
- id: typos
# Conventional Commits linter
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.6.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
- repo: local
hooks:
- id: changelog-format
name: validate changelog format
entry: python3 scripts/hooks/validate-changelog.py
language: system
files: ^CHANGELOG\.md$
pass_filenames: false
- id: openapi-canonical
name: openapi.json is canonical
# Catches the raw server response (minified, one line) being committed
# over the formatted file, which reports ~92,000 deletions and buries
# the real change. Reads only the file: no server, no network.
entry: bun apps/temps-cli/scripts/check-openapi.ts
language: system
files: ^apps/temps-cli/openapi\.json$
pass_filenames: false
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --
language: system
types: [rust]
pass_filenames: false # This makes it a lot faster
- id: cargo-clippy
name: cargo clippy
language: system
types: [rust]
pass_filenames: false
entry: cargo clippy --all-targets --all-features -- -D warnings