Loading...
Loading...
Use when setting up or running hooks with prek in any repository. prek is a Rust drop-in alternative to pre-commit for running Git hooks that check, format, lint, and validate code and repository files. Prefer it when speed, workspace mode, built-in hooks, shared toolchains, or native TOML configuration matter.
npx skill4agent add j178/prek prekprekprekpre-commitprekpre-commitpre-pushcommit-msgpre-commitprekprek.tomlhttps://github.com/astral-sh/ruff-pre-commitrepo = "local"repo = "meta"check-hooks-applycheck-useless-excludesidentityrepo = "builtin"prek[[repos]]
repo = "https://github.com/astral-sh/ruff-pre-commit"
rev = "v0.14.3"
hooks = [
{ id = "ruff" },
{ id = "ruff-format" },
][[repos]]
repo = "local"
hooks = [
{
id = "cargo-fmt",
name = "cargo fmt",
language = "system",
entry = "cargo fmt --",
files = "\\.rs$",
},
][[repos]]
repo = "builtin"
hooks = [
{ id = "trailing-whitespace" },
{ id = "check-yaml" },
][[repos.hooks]]envpass_filenames = falsepriorityfiles = "\\.rs$"prekfiles = { glob = "src/**/*.rs" }exclude = { glob = ["target/**", "dist/**"] }prioritypriorityprioritiesprioritypriorityprekenvprioritiespriorityminimum_prek_versionorphan = trueprek.pre-commit-config.yaml.pre-commit-config.ymlpre-commitprekpre-commitprek install -fprek.tomlprekprek validate-configprek install --prepare-hooksprek run --all-files.prekignoreorphan: true.pre-commit-config.yamlprekuv tool install prekbrew install prekmise use prekcargo binstall prekcargo install --locked prekprek installprek prepare-hooksprek install --prepare-hooksprek runprek run --all-filesprek run <hook-id>prek listprek validate-configprek.toml.pre-commit-config.yamlprek auto-updateprek util yaml-to-tomlprek.tomlprek util identify <path>typestypes_orexclude_typesprek run --dry-runprek run --directory <dir>prek run --last-commitprek run --skip <hook-or-project>prek -C <dir> ...prek run -vvvPREK_NO_FAST_PATH=1 prek runPREK_*PREK_HOMEPREK_SKIPprekhttps://github.com/pre-commit/pre-commit-hooksrepo: builtinrepo: builtinpre-committrailing-whitespacecheck-added-large-filescheck-case-conflictcheck-illegal-windows-namesend-of-file-fixerfile-contents-sorterfix-byte-order-markercheck-jsoncheck-json5pretty-format-jsoncheck-tomlcheck-vcs-permalinkscheck-yamlcheck-xmlmixed-line-endingcheck-symlinksdestroyed-symlinkscheck-merge-conflictdetect-private-keyno-commit-to-branchcheck-shebang-scripts-are-executablecheck-executables-have-shebangsprek.toml.pre-commit-config.yamlrepo: builtinpre-commit-hooksprekprek util yaml-to-toml