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
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