-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
35 lines (35 loc) · 1.01 KB
/
.pre-commit-config.yaml
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: local
hooks:
- id: cargo-fmt
name: Format all rust sources
language: system
entry: cargo fmt
files: ^.*\.rs$
pass_filenames: false
- id: cargo-check
name: Check all crates in the workspace
language: system
entry: cargo check --workspace --examples --tests --bins
files: ^(src|tests)/.*\.rs$
pass_filenames: false
- id: cargo-test
name: Run profirust testsuite
language: system
entry: cargo test
files: ^(src|tests)/.*\.rs$
pass_filenames: false
- id: cargo-test-gsd
name: Run gsd-parser testsuite
language: system
entry: cargo test -p gsd-parser
files: ^gsd-parser/.*\.rs$
pass_filenames: false