-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
62 lines (62 loc) · 1.92 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
default_language_version:
rust: 1.75.0
# default_stages: [commit, push]
repos:
# ------------------------------------------------------------
# General
# ------------------------------------------------------------
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: end-of-file-fixer
# - id: mixed-line-ending
# args: [--fix=lf]
- id: trailing-whitespace
# - id: check-illegal-windows-names
# - id: check-shebang-scripts-are-executable
# ------------------------------------------------------------
# Format YAML files
# ------------------------------------------------------------
# - repo: https://github.com/google/yamlfmt
# rev: v0.10.0
# hooks:
# - id: yamlfmt
# ------------------------------------------------------------
# Rust Build
# ------------------------------------------------------------
- repo: local
hooks:
- id: cargo-build
name: cargo build
entry: cargo build --tests --release
language: system
pass_filenames: false
always_run: true
# ------------------------------------------------------------
# Rust Test
# ------------------------------------------------------------
- repo: local
hooks:
- id: cargo-test
name: cargo test
entry: cargo test --release
language: system
pass_filenames: false
always_run: true
# ------------------------------------------------------------
# FIXME Rust Format
# ------------------------------------------------------------
# - repo: local
# hooks:
# - id: rustfmt
# name: rustfmt
# entry: rustfmt
# language: system
# pass_filenames: true
# always_run: true