Skip to content

hk migrate pre-commit

  • Usage: hk migrate pre-commit [FLAGS]
  • Effect: modifies state

Migrate from pre-commit to hk

Flags

  • -c --config <CONFIG> — Path to .pre-commit-config.yaml

    Default: .pre-commit-config.yaml

  • -f --force — Overwrite existing hk.pkl file

  • -o --output <OUTPUT> — Output path for hk.pkl

    Default: hk.pkl

  • --hk-pkl-root <HK_PKL_ROOT> — Root path for hk pkl files (e.g. "pkl" for a local checkout, or a package URL prefix). If set, the generated config uses {root}/Config.pkl and {root}/Builtins.pkl

  • -h --help — Print help

MIT LicenseCopyright © 2026jdx.dev