default_install_hook_types = ["commit-msg", "pre-commit", "pre-push"]
default_stages = ["pre-commit"]
exclude = {
glob = [
"**/snapshots/**/*.snap",
]
}
[[repos]]
repo = "https://github.com/pre-commit/pre-commit-hooks"
rev = "v6.0.0"
hooks = [
{ id = "check-added-large-files" },
{ id = "check-case-conflict" },
{ id = "check-executables-have-shebangs" },
{ id = "check-merge-conflict" },
{ id = "check-shebang-scripts-are-executable", exclude = "\\.rs$" },
{ id = "check-symlinks" },
{ id = "destroyed-symlinks" },
{ id = "detect-private-key" },
{ id = "end-of-file-fixer" },
{ id = "fix-byte-order-marker" },
{ id = "mixed-line-ending" },
{ id = "trailing-whitespace" },
{ id = "check-json" },
{ id = "check-toml" },
{ id = "check-xml" },
{ id = "check-yaml" },
]
[[repos]]
repo = "https://github.com/lyz-code/yamlfix/"
rev = "1.19.1"
hooks = [{ id = "yamlfix", args = ["--config-file", ".yamlfix.toml"] }]
[[repos]]
repo = "https://github.com/biomejs/pre-commit"
rev = "v2.4.6"
hooks = [{ id = "biome-check" }]
[[repos]]
repo = "https://github.com/tombi-toml/tombi-pre-commit"
rev = "v0.9.3"
hooks = [{ id = "tombi-format" }, { id = "tombi-lint" }]
[[repos]]
repo = "https://github.com/crate-ci/committed"
rev = "v1.1.11"
hooks = [{ id = "committed" }]
[[repos]]
repo = "https://github.com/DavidAnson/markdownlint-cli2"
rev = "v0.21.0"
hooks = [{ id = "markdownlint-cli2", args = ["--fix"] }]
[[repos]]
repo = "https://github.com/crate-ci/typos"
rev = "v1.44.0"
hooks = [{ id = "typos" }]
[[repos]]
repo = "https://github.com/shellcheck-py/shellcheck-py"
rev = "v0.11.0.1"
hooks = [{ id = "shellcheck", args = ["--external-sources"] }]
[[repos]]
repo = "https://github.com/scop/pre-commit-shfmt"
rev = "v3.12.0-2"
hooks = [{ id = "shfmt" }]
[[repos]]
repo = "local"
hooks = [
{
id = "cargo-check",
name = "cargo check",
entry = "cargo check --",
language = "system",
types = ["rust"],
pass_filenames = false
},
{
id = "cargo-clippy",
name = "cargo clippy",
entry = "cargo clippy --",
language = "system",
types = ["rust"],
pass_filenames = false
},
{
id = "cargo-fmt",
name = "cargo fmt",
entry = "cargo fmt --",
language = "system",
types = ["rust"],
pass_filenames = false
},
]