-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (30 loc) · 870 Bytes
/
.pre-commit-config.yaml
File metadata and controls
33 lines (30 loc) · 870 Bytes
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
exclude: "docs|node_modules|migrations|env|config|.git|.tox|target"
default_stages: [commit]
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: check-added-large-files
- id: check-ast
- id: check-symlinks
- id: check-yaml
- id: trailing-whitespace
- id: check-json
- id: debug-statements
- id: pretty-format-json
- repo: local
hooks:
- id: rustfmt
name: rustfmt
description: Check if all files follow the rustfmt style
entry: cargo fmt --all --check -- --color always
language: system
pass_filenames: false
- id: cargocheck
name: cargocheck
description: Cargo checking
entry: cargo check
language: system
pass_filenames: false