Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
66 lines (66 loc) · 2.05 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
66 lines (66 loc) · 2.05 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
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
exclude: '.*\.rs$'
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-yaml
exclude: charts/[^/]+/templates/.+.yaml
- id: end-of-file-fixer
exclude: '.*\.rs$'
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
- repo: local
hooks:
- id: commitlint
name: commitlint
description: Lint your commit messages
stages: [commit-msg]
language: system
entry: commitlint --edit
always_run: true
- id: nixpkgs-fmt
name: nixpkgs-fmt
description: Format nix code with nixpkgs-fmt.
entry: nixpkgs-fmt
language: system
types: [nix]
- id: clang-format
name: clang-format
description: Format C/C++/Java/JavaScript/Objective-C/Protobuf/C# code
entry: clang-format
language: system
types: [proto]
- id: prettier
name: prettier
entry: prettier --check --ignore-unknown
language: system
- id: rust-format
name: rust-format
description: Formats all bin and lib files of the current crate using rustfmt
entry: ./dev-support/bin/format-rust
language: system
types: [rust]
pass_filenames: false
- id: cargo-check
name: cargo check
description: Check a local package and all of its dependencies for errors
entry: cargo check
language: system
types: [rust]
pass_filenames: false
- id: clippy
name: clippy
description: Checks a package to catch common mistakes and improve your Rust code
entry: ./dev-support/bin/cargo-clippy-all
language: system
types: [rust]
pass_filenames: false