-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
CLN fix missing newlines #4105
CLN fix missing newlines #4105
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4105 +/- ##
=======================================
Coverage 88.76% 88.76%
=======================================
Files 89 89
Lines 14015 14015
=======================================
Hits 12440 12440
Misses 1575 1575
|
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.
Looks neat, thanks @MarcoGorelli ! Don't know why it changed some JS files though 🤷♂️
Also, how would devs go ahead and apply that in their PR workflow?
👍
Pre-commit isn't a Python-specific tool. This particular hook will run against lots of different types of files, if they don't have newlines at the end (like the JS files modified here didn't) it'll add them
If they install pre-commit, the pre-commit checks will run against any files they've modified when they do |
Sounds good! Thanks a lot @MarcoGorelli 👌 |
xref this comment by @twiecki #4076 (comment)
How about adding a pre-commit check for this, so that reviewers never have to worry about leaving such a review in the future 😄 ?