[[repos]]
repo = "builtin"
hooks = [
{ id = "end-of-file-fixer", args = ["--fix"] },
{ id = "trailing-whitespace" },
{ id = "check-case-conflict" },
{ id = "mixed-line-ending", args = ["--fix=lf"] },
]
[[repos]]
repo = "local"
hooks = [
{ id = "taplo", name = "taplo", language = "system", entry = "taplo fmt", files = "\\.toml$" },
{ id = "cargo fmt", name = "cargo fmt", language = "system", pass_filenames = false, entry = "cargo fmt", args = [
"--check",
"--all",
"--",
"--config",
"format_generated_files=false",
], files = "\\.rs$" },
{ id = "cargo clippy", name = "cargo clippy", language = "system", pass_filenames = false, entry = "cargo clippy", args = [
"--all-targets",
"--all-features",
"--workspace",
"--",
"-Dwarnings",
], files = "\\.rs$" },
{ id = "cargo test", name = "cargo test", language = "system", pass_filenames = false, entry = "cargo test", files = "\\.rs$" },
]