-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
41 lines (38 loc) · 1.06 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
41 lines (38 loc) · 1.06 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
# Pre-commit hooks configuration
# See https://pre-commit.com for more information
# Install: pip install pre-commit && pre-commit install
repos:
# Rust formatting
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --all --
language: system
types: [rust]
pass_filenames: false
# Rust linting
- repo: local
hooks:
- id: cargo-clippy
name: cargo clippy
entry: cargo clippy --all-targets --all-features -- -D warnings
language: system
types: [rust]
pass_filenames: false
# Security/license check
- repo: local
hooks:
- id: cargo-deny
name: cargo deny
entry: cargo deny check
language: system
types: [rust]
pass_filenames: false
# Conventional commits (optional - for commit-msg hook)
# Uncomment if you want commit message validation
# - repo: https://github.com/compilerla/conventional-pre-commit
# rev: v3.0.0
# hooks:
# - id: conventional-pre-commit
# stages: [commit-msg]