I am able to successfully use pre-commit run --all-files to run hooks on all my files.
Now, I'm trying to run the hooks just on files in a particular directory. I think I'm not understanding the docs and I can't find an example to work from.
Here's what the docs say:
--files [FILES [FILES ...]]: specific filenames to run hooks on.
I've tried the following variations:
pre-commit run --files web/modules/custom
pre-commit run --files web/modules/custom/*
pre-commit run --files [web/modules/custom]
pre-commit run --files [web/modules/custom/*]
pre-commit run --files [FILES [web/modules/custom]
pre-commit run --files [FILES [web/modules/custom/*]
I feel really dumb having to ask, but can someone please point me in the right direction?
I am able to successfully use
pre-commit run --all-filesto run hooks on all my files.Now, I'm trying to run the hooks just on files in a particular directory. I think I'm not understanding the docs and I can't find an example to work from.
Here's what the docs say:
I've tried the following variations:
pre-commit run --files web/modules/custompre-commit run --files web/modules/custom/*pre-commit run --files [web/modules/custom]pre-commit run --files [web/modules/custom/*]pre-commit run --files [FILES [web/modules/custom]pre-commit run --files [FILES [web/modules/custom/*]I feel really dumb having to ask, but can someone please point me in the right direction?