TBD54566975 / web5-go

Apache License 2.0
7 stars 6 forks source link

Issue #53: add a pre-commit git hook to run lint on staged files #56

Closed mihai-chiorean closed 4 months ago

mihai-chiorean commented 4 months ago

the previous version was actually bad because some linting failed on staged files for lack of context (aka wasn't looking at imports). Hopefully the ideas in the comments this makes it better and more useful

alecthomas commented 4 months ago

It's not possible unfortunately, but I think what you're recalling is that Hermit has a package for a tool that manages pre-commit hooks called lefthook.