-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprek.toml
More file actions
9 lines (9 loc) · 854 Bytes
/
prek.toml
File metadata and controls
9 lines (9 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
[[repos]]
repo = "local"
hooks = [
{ id = "cargo-fmt", name = "cargo fmt", language = "system", entry = "cargo fmt --all -- --check", files = "\\.rs$", pass_filenames = false },
{ id = "cargo-clippy", name = "cargo clippy", language = "system", entry = "cargo clippy --all-targets --all-features -- -D warnings", files = "\\.rs$", pass_filenames = false },
{ id = "prettier", name = "prettier", language = "system", entry = "npx --prefix vsix prettier --plugin ./vsix/node_modules/prettier-plugin-toml/lib/index.js --check", files = "\\.(md|json|yml|yaml|toml)$" },
{ id = "cargo-test", name = "cargo test", language = "system", entry = "cargo test", always_run = true, pass_filenames = false },
{ id = "docgraph-check", name = "docgraph check", language = "system", entry = "cargo run -- check", always_run = true, pass_filenames = false },
]