mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-08-07 01:33:52 +00:00
Pre-commit: trailing whitespace, EOF fixer, merge conflict check, cargo fmt --check, cargo clippy -D warnings Pre-push: cargo nextest run
34 lines
720 B
TOML
34 lines
720 B
TOML
# prek.toml — pre-commit & pre-push hooks for idx-cli
|
|
|
|
[[repos]]
|
|
repo = "builtin"
|
|
hooks = [
|
|
{ id = "trailing-whitespace" },
|
|
{ id = "end-of-file-fixer" },
|
|
{ id = "check-merge-conflict" },
|
|
]
|
|
|
|
[[repos]]
|
|
repo = "local"
|
|
|
|
[[repos.hooks]]
|
|
id = "cargo-fmt"
|
|
name = "cargo fmt"
|
|
entry = "cargo fmt --check"
|
|
language = "system"
|
|
types = ["rust"]
|
|
pass_filenames = false
|
|
|
|
[[repos.hooks]]
|
|
id = "cargo-clippy"
|
|
name = "cargo clippy"
|
|
entry = "cargo clippy -- -D warnings"
|
|
language = "system"
|
|
types = ["rust"]
|
|
pass_filenames = false
|
|
|
|
[[repos]]
|
|
repo = "local"
|
|
hooks = [
|
|
{ id = "cargo-test", name = "cargo test", entry = "cargo nextest run", language = "system", types = ["rust"], pass_filenames = false, stages = ["pre-push"] },
|
|
]
|