git-ents.gitmain
⌘K
foforge
pre-commit.yaml42 lines · 1.3 KB · yamlhistorycomment on this file
1# Vendored content (see .gitvendors) is kept byte-for-byte as upstream, so it
2# must not be reformatted by the hooks below.
3exclude: ^(.*/)?(CHANGELOG\.md)$|^crates/cli/ents-web/src/assets/icons/
4default_install_hook_types: [pre-commit, commit-msg]
5repos:
6 - repo: https://github.com/pre-commit/pre-commit-hooks
7 rev: v6.0.0
8 hooks:
9 - id: trailing-whitespace
10 - id: end-of-file-fixer
11 - id: check-yaml
12 - id: check-json
13 - id: check-added-large-files
14 - repo: https://github.com/rvben/rumdl-pre-commit
15 rev: v0.1.25
16 hooks:
17 - id: rumdl
18 args: [--config, .config/rumdl.toml, --fix]
19 - repo: https://github.com/crate-ci/typos
20 rev: v1.43.5
21 hooks:
22 - id: typos
23 args: [--write-changes, --force-exclude, --config, .config/typos.toml]
24 - repo: https://github.com/crate-ci/committed
25 rev: v1.1.10
26 hooks:
27 - id: committed
28 args: [--config, .config/committed.toml, --commit-file]
29 - repo: local
30 hooks:
31 - id: fmt
32 name: cargo fmt
33 language: system
34 entry: cargo fmt --all --
35 types: [rust]
36 pass_filenames: false
37 - id: clippy
38 name: cargo clippy
39 language: system
40 entry: cargo clippy --config .config/clippy.toml --all-targets --all-features -- -D warnings
41 types: [rust]
42 pass_filenames: false