pre-commit / pre-commit-hooks

Some out-of-the-box hooks for pre-commit
MIT License
5.2k stars 694 forks source link

Exclude files from pre-commit-hook #1041

Closed Nael-Sayegh closed 5 months ago

Nael-Sayegh commented 5 months ago

Hello, I have a pre-commit-config file where I have defined several checks. I would like to exclude certain files from the checks, such as GitHub Actions or translation files. It seems that it is not possible to do this, would it be possible to add an option to configure it? Thank you

asottile commented 5 months ago

what have you tried? read the docs