-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
41 lines (41 loc) · 1.04 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
args: ['--fix', 'lf']
exclude: '.*\.(svg)$'
- id: fix-byte-order-marker
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: debug-statements
- id: check-yaml
files: .*\.(yaml|yml)$
exclude: '^zuul.d/.*$'
- id: check-json
- repo: https://github.com/crate-ci/typos
rev: v1.29.3
hooks:
- id: typos
- repo: https://github.com/crate-ci/committed
rev: v1.0.20
hooks:
- id: committed
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
description: Format rust files with cargo fmt
entry: cargo fmt
args: ["--"]
language: rust
types: [rust]
minimum_pre_commit_version: 2.21.0
require_serial: true
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
hooks:
- id: gitleaks