forked from arighi/virtme-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
73 lines (72 loc) · 2.21 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
73 lines (72 loc) · 2.21 KB
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
63
64
65
66
67
68
69
70
71
72
73
---
ci:
autofix_prs: false
autoupdate_schedule: monthly
skip: [cargo-clippy-fix, cargo-clippy, cargo-check, cargo-fmt]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
exclude: 'DCO-1\.1\.txt'
- id: trailing-whitespace
- id: check-merge-conflict
- id: mixed-line-ending
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-yaml
- id: check-json
- id: check-toml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.15
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.13.1-1
hooks:
- id: shfmt
- repo: local
hooks:
- id: cargo-clippy-fix
description: Run cargo clippy fix
entry: env
args: [--chdir=virtme_ng_init, --, cargo, clippy, --fix, --allow-dirty, --allow-staged, --all-targets, --all-features, --]
language: system
name: cargo clippy --fix
pass_filenames: false
require_serial: true
types: [rust]
- id: cargo-clippy
description: Run cargo clippy
entry: env
# Fail if any warnings are found in the code
args: [--chdir=virtme_ng_init, --, cargo, clippy, --all-targets, --all-features, --, --deny, warnings]
language: system
name: cargo clippy --deny warnings
pass_filenames: false
require_serial: true
types: [rust]
- id: cargo-check
description: Run cargo check
entry: env
args: [--chdir=virtme_ng_init, --, cargo, check, --all-targets, --all-features, --]
language: system
name: cargo check
pass_filenames: false
require_serial: true
types: [rust]
- id: cargo-fmt
description: Run cargo fmt
entry: env
args: [--chdir=virtme_ng_init, --, cargo, fmt, --all, --]
language: system
name: cargo fmt
pass_filenames: false
require_serial: true
types: [rust]