Closed mildblimp closed 3 years ago
This can be helpful if the string is common but should be disallowed in a particular file.
This is actually native to pre-commit itself. In the .pre-commit-hooks.yaml config where you're activating the hook, you can use exclude: to exclude a list of files. There's a good example of this w/ regex here.
.pre-commit-hooks.yaml
exclude:
Ah of course! You are totally right, my apologies.
This can be helpful if the string is common but should be disallowed in a particular file.