-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (29 loc) · 896 Bytes
/
.pre-commit-config.yaml
File metadata and controls
29 lines (29 loc) · 896 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # v4.6.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: end-of-file-fixer
- id: mixed-line-ending
args: ["--fix=lf"]
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md"]
- id: check-toml
- id: check-yaml
- repo: https://github.com/doublify/pre-commit-rust
rev: eeee35a89e69d5772bdee97db1a6a898467b686e # 1.0
hooks:
- id: fmt
name: cargo fmt
- id: clippy
name: cargo clippy
args: ["--all-targets", "--all-features", "--", "-D", "warnings"]
- repo: local
hooks:
- id: cargo-sqlx
name: sqlx offline check
entry: cargo sqlx prepare --check
language: system
files: \.rs$
pass_filenames: false