sirosen / texthooks

pre-commit hooks for checking text file contents
Other
14 stars 3 forks source link

Allow ignoring of files/paths? #1

Closed ahgraber closed 2 years ago

ahgraber commented 2 years ago

I have several files where smartquotes are intentionally present so the code can identify and parse them. It would be ideal to be able to ignore these files from fix-smartquotes. Is there a configuration option to allow this?

sirosen commented 2 years ago

How are you running the fixer?

If you're doing so via pre-commit, there are pre-commit configuration options to skip files or directories (look for exclude in the docs).

As I have to budget my time for this (and other) projects, I'd like to rely on pre-commit's file selection logic as much as possible.

ahgraber commented 2 years ago

::facepalm:: right. I'll do that. Thanks for the tip.