ci: convert prek.toml to .pre-commit-config.yaml (prek 0.3 compat)

This commit is contained in:
Ciphercat 2026-03-05 18:32:48 +00:00
commit 5da59c36c7
2 changed files with 30 additions and 34 deletions

30
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,30 @@
repos:
- repo: builtin
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --check
language: system
types: [rust]
pass_filenames: false
- id: cargo-clippy
name: cargo clippy
entry: cargo clippy -- -D warnings
language: system
types: [rust]
pass_filenames: false
- id: cargo-test
name: cargo test
entry: cargo nextest run
language: system
types: [rust]
pass_filenames: false
stages: [pre-push]