forked from riker-rs/riker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
23 lines (23 loc) · 933 Bytes
/
.pre-commit-config.yaml
File metadata and controls
23 lines (23 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
files: "^(riker-macros/.*|config/.*|src/.*|tests/.*|examples/.*|[^/]*)$"
repos:
- repo: local
hooks:
- id: touch_main.rs
name: touch to enforce cargo clippy https://github.com/rust-lang/rust-clippy/issues/1495 .
language: system
entry: sh -c 'touch src/lib.rs'
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: clippy
args: ["--all-targets", "--all-features", "--", "-D", "warnings"]
name: cargo clippy https://github.com/rust-lang/rust-clippy/blob/master/README.md .
- id: cargo-check
name: cargo check https://doc.rust-lang.org/cargo/commands/cargo-check.html .
- id: fmt
name: rustfmt https://github.com/rust-lang/rustfmt/blob/master/README.md .
- repo: https://github.com/pre-commit/mirrors-prettier.git
rev: v2.2.0
hooks:
- id: prettier
name: prettier https://prettier.io/docs/en/ .