I am working in a repo in which I save some cached data as zarr files. I enabled pre-commit hooks, but these are "fixing" some of the .zattrs files in my zarr archives. How do I specify a "exclude directory" for pre-commit?
https://pre-commit.com/#creating-new-hooks. don't see directory but there is exclude_types
so you could exclude *.zattrs
Thanks Deepak! I found this post too:
https://stackoverflow.com/questions/61032281/exclude-some-files-on-running-black-using-pre-commit
and that seems to work!
Last updated: May 16 2025 at 17:14 UTC