Skip to content

prek hook-impl cannot find config file if you use --config=<path> #2062

@injust

Description

@injust

Summary

prek hook-impl's --config option cannot find the config file if you use --config=<path> instead of --config <path>:

error: config file not found: `~/.config/prek/global-hooks.toml`

Willing to submit a PR?

  • Yes — I’m willing to open a PR to fix this.

Platform

macOS 15 x86_64

Version

prek 0.3.13 (Homebrew 2026-05-05)

.pre-commit-config.yaml

N/A

Log file

2026-05-09T05:09:31.603109Z DEBUG prek: 0.3.13 (Homebrew 2026-05-05)
2026-05-09T05:09:31.603192Z DEBUG Args: ["prek", "hook-impl", "--hook-type=pre-commit", "--config=~/.config/prek/global-hooks.toml"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions