minimum_prek_version = "0.3.3"
default_install_hook_types = [
"pre-commit",
"commit-msg"
]
default_stages = ["pre-commit"]
[[repos]]
repo = "builtin"
hooks = [
{ id = "check-added-large-files" },
{ id = "check-case-conflict" },
{ id = "check-executables-have-shebangs" },
{ id = "check-json" },
{ id = "check-merge-conflict" },
{ id = "check-symlinks" },
{ id = "check-toml" },
{ id = "check-xml" },
{ id = "check-yaml" },
{ id = "detect-private-key" },
{ id = "end-of-file-fixer" },
{ id = "fix-byte-order-marker" },
{ id = "mixed-line-ending" },
{ id = "trailing-whitespace" }
]
[[repos]]
repo = "https://github.com/pre-commit/pre-commit-hooks"
rev = "v6.0.0"
hooks = [
{ id = "check-illegal-windows-names" },
{
id = "check-shebang-scripts-are-executable",
exclude = '.*\.rs$'
},
{ id = "check-vcs-permalinks" },
{ id = "destroyed-symlinks" },
{
id = "detect-aws-credentials",
args = ["--allow-missing-credentials"]
},
{
id = "pretty-format-json",
args = ["--autofix"]
}
]
[[repos]]
repo = "https://github.com/bnjbvr/cargo-machete"
rev = "v0.9.1"
hooks = [
{
id = "cargo-machete",
args = ["--fix"]
}
]
[[repos]]
repo = "https://github.com/commitizen-tools/commitizen"
rev = "v4.13.8"
hooks = [
{ id = "commitizen" }
]
[[repos]]
repo = "https://github.com/crate-ci/typos"
rev = "v1.43.5"
hooks = [
{ id = "typos" }
]
[[repos]]
repo = "https://github.com/google/yamlfmt"
rev = "v0.21.0"
hooks = [
{ id = "yamlfmt" }
]
[[repos]]
repo = "https://github.com/doublify/pre-commit-rust"
rev = "v1.0"
hooks = [
{ id = "fmt" },
{
id = "cargo-check",
args = ["--all-targets"]
},
{
id = "clippy",
args = [
"--all-targets",
"--",
"-D",
"warnings"
]
}
]
[[repos]]
repo = "https://github.com/zizmorcore/zizmor-pre-commit"
rev = "v1.22.0"
hooks = [
{ id = "zizmor" }
]