Skip to content

feat: allow config discovery under <project_dir>/.config/ #2129

@jakewimmer

Description

@jakewimmer

In order to avoid cluttering my project roots, I'd like to have the option for prek to natively search for its configuration under a .config/ directory in addition to its usual approach of looking at the root of the starting directory and moving up the directory tree.

This new search could additionally apply to the upwards directory tree search, allowing prek to locate configuration in a manner that follows the pattern below:

  • <pwd>/prek.toml
  • <pwd>/.config/prek.toml
  • <pwd>/../prek.toml
  • <pwd>/../.config/prek.toml
  • <pwd>/../../prek.toml
  • <pwd>/../../.config/prek.toml

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaJust an idea

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions