-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Ignore backup files of hooks #768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore backup files of hooks #768
Conversation
Current coverage is 100%@@ master #768 diff @@
====================================
Files 13 13
Lines 584 585 +1
Methods 0 0
Messages 0 0
Branches 0 0
====================================
+ Hits 584 585 +1
Misses 0 0
Partials 0 0
|
Nice! 👍 |
|
||
if not filename.endswith('~') and basename in _HOOKS: | ||
hooks[basename] = os.path.abspath(os.path.join(hooks_dir, f)) | ||
return hooks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really a fan of this existing implementation- the caller knows which hook it's looking for, so it's weird that we iterate through all the hook files on pre- and post-...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
100% agreed!
Let's refactor |
🍰 Cool to merge post CI. |
Thanks for the review and the merge @michaeljoseph! 🍰 |
You make it my pleasure @hackebrot 😻 |
Resolve #767