forked from phillord/horned-owl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
38 lines (38 loc) · 1.08 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
36
37
38
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: untracked-file
name: Untracked Files
language: system
entry: ./dev/untracked-files.sh
pass_filenames: false
stages: [pre-commit, pre-push]
- id: run-tests
name: Running Test
language: system
entry: make pre-commit
pass_filenames: false
stages: [pre-commit, pre-push]
- id: Compile Benches
name: Compile Benches
language: system
entry: cargo bench --no-run --quiet
pass_filenames: false
stages: [pre-commit, pre-push]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
args: ["--maxkb=1000"]
- id: no-commit-to-branch
args: [--branch, rfc]
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
args: ["--check", "--"]
pass_filenames: false
- id: clippy
pass_filenames: false