-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
50 lines (50 loc) · 1.63 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.29.0
hooks:
- id: commitizen
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-added-large-files
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.13.0
hooks:
- id: markdownlint-cli2
- repo: local
hooks:
- id: sqlx
name: sqlx check
entry: bash -c 'cd ./backend && cargo sqlx prepare --check'
language: system
types: [text]
files: "\\.(sql|rs)$"
pass_filenames: false
- id: lint
name: lint
entry: npm run --prefix ./frontend lint:fix
language: system
types: [text]
files: "\\.(html|js|ts|svelte|json)$"
pass_filenames: false
- id: clippy
name: clippy
entry: cargo clippy
language: system
types: [rust]
args: ["--manifest-path", "./backend/Cargo.toml", "--fix", "--allow-dirty", "--allow-staged", "--all-targets"]
pass_filenames: false
- id: fmt
name: fmt
entry: cargo fmt
language: system
types: [rust]
args: ["--manifest-path", "./backend/Cargo.toml", "--"]