forked from rudof-project/rudof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (32 loc) · 1.01 KB
/
.pre-commit-config.yaml
File metadata and controls
32 lines (32 loc) · 1.01 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
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
# Prevents !Symbol TAG from being misinterpreted as a YAML syntax error
exclude: ^rbe_testsuite/tests/basic\.yaml$
- id: check-json
- id: check-toml
- id: check-xml
- id: check-added-large-files
- id: check-case-conflict
- id: check-illegal-windows-names
- id: detect-private-key
- id: fix-byte-order-marker
- id: mixed-line-ending
args: [ "--fix=lf" ]
- id: no-commit-to-branch
args: [ "-b", "master" ]
# - id: file-contents-sorter # Check usage for cargo.toml
- repo: https://github.com/FeryET/pre-commit-rust
rev: v1.2.1
hooks:
- id: cargo-check
- id: fmt
- id: clippy
# args: [ "--all-targets", "--all-features", "--workspace", "--", "-D", "warnings" ]
- id: test
args: [ "--workspace" ]
- id: build