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

Adds --hook:ignore-file, --hook:ignore-dir

Open TekWizely opened this issue 8 months ago • 1 comments

ignore-file patterns are based on simple bash pattern matching.

Vendor exclusions are now subject to the ignore-dir logic.


Relates to #23, #24, #37

cc: @balihb Hoping you can help me test this. I think you would add --hook:ignore-dir=.cache as an argument to your hook invocation.

I haven't even tested myself yet so this is very alpha-level :)

TekWizely avatar Apr 22 '25 00:04 TekWizely

It works perfectly! Arigatō gozaimasu! ❤️

balihb avatar Apr 22 '25 09:04 balihb

@balihb Could you check this updated version and see if it still works for you?

TekWizely avatar Jul 29 '25 17:07 TekWizely

@DariaKunoichi Could you take a look at this and see if it could meet your needs ?

TekWizely avatar Jul 29 '25 17:07 TekWizely

@spkane could you take a look at this and see if it could meet your needs ?

TekWizely avatar Jul 29 '25 17:07 TekWizely

@spkane could you take a look at this and see if it could meet your needs ?

I can’t easily test this at the moment, as my original issue was raised when I was working for another organization, but the general functionality looks good and will hopefully prove useful in the future.

spkane avatar Jul 29 '25 23:07 spkane