Closed
Description
Is your feature request related to a problem? Please describe.
I would like a way to run many of these pre-commit hooks in arbitrary subdirectories.
I am creating a repository with the following layout:
.
├── common/
│ └── ...
├── pypkg/
│ ├── setup.py
│ └── ...
├── rpkg/
│ ├── DESCRIPTION
│ └── ...
└── ...
Currently, use-tidy-description
, deps-in-desc
, and a few other hooks will fail with this repo layout.
Describe the solution you'd like
Each pre-commit hook (if possible) has either a before
script that can allow users to change directories or support some type of argument for specifying the working-directory
similar to github actions.
Describe alternatives you've considered
An alternative approach would be to support .pre-commit-config.yaml
files in subdirectories but that seems out of scope for this project.
Metadata
Metadata
Assignees
Labels
No labels