forked from DOD-101/igneous-md
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
45 lines (45 loc) · 1.16 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
45 lines (45 loc) · 1.16 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
exclude: LICENSE-|.*\.min.js
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- repo: https://github.com/crate-ci/typos
rev: v1.42.1
hooks:
- id: typos
- repo: local
hooks:
- id: build
name: Cargo Build
entry: cargo build
language: system
pass_filenames: false
files: "^Cargo.toml|\\.rs$"
- id: fmt
name: Cargo Format
entry: cargo fmt --all -- --color always
language: system
pass_filenames: false
files: "^Cargo.toml|\\.rs$"
- id: check
name: Cargo Check
entry: cargo check
language: system
pass_filenames: false
files: "^Cargo.toml|\\.rs$"
- id: clippy
name: Cargo Clippy
entry: cargo clippy -- -D warnings
language: system
pass_filenames: false
files: "^Cargo.toml|\\.rs$"
- id: test
name: Cargo Test
entry: cargo test
language: system
pass_filenames: false
files: "^Cargo.toml|\\.rs$"