pre-commit-hooks icon indicating copy to clipboard operation
pre-commit-hooks copied to clipboard

add ignore-files argument to remove-crlf?

Open ahgraber opened this issue 3 years ago • 1 comments

Generally I want to replace/remove CRLF in my repos. However, there are times where I require CRLF endings in files. It would be very beneficial to have an --ignore-files argument that would take file names or globs and ignore them.

ahgraber avatar Jul 15 '22 15:07 ahgraber

Alright, sur, this could be added. Do you want to submit a PR ?

Lucas-C avatar Jul 16 '22 08:07 Lucas-C

Sorry for the lack of response 😢

Actually, pre-commit already provides a builtin feature to do this: exclude cf. https://pre-commit.com/#config-exclude

Lucas-C avatar Mar 31 '23 08:03 Lucas-C