Skip to content
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

Merged
merged 1 commit into from
Sep 17, 2020
Merged

Conversation

MarcoGorelli
Copy link
Contributor

xref this comment by @twiecki #4076 (comment)

missing new line

How about adding a pre-commit check for this, so that reviewers never have to worry about leaving such a review in the future 😄 ?

@twiecki
Copy link
Member

twiecki commented Sep 16, 2020 via email

@codecov
Copy link

codecov bot commented Sep 16, 2020

Codecov Report

Merging #4105 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4105   +/-   ##
=======================================
  Coverage   88.76%   88.76%           
=======================================
  Files          89       89           
  Lines       14015    14015           
=======================================
  Hits        12440    12440           
  Misses       1575     1575           
Impacted Files Coverage Δ
pymc3/distributions/bound.py 91.59% <ø> (ø)
pymc3/distributions/dist_math.py 91.79% <ø> (ø)
pymc3/gp/mean.py 97.43% <ø> (ø)

Copy link
Contributor

@AlexAndorra AlexAndorra left a 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?

@MarcoGorelli
Copy link
Contributor Author

MarcoGorelli commented Sep 16, 2020

Looks neat, thanks @MarcoGorelli !

👍

Don't know why it changed some JS files though man_shrugging

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

Also, how would devs go ahead and apply that in their PR workflow?

If they install pre-commit, the pre-commit checks will run against any files they've modified when they do git commit

@AlexAndorra
Copy link
Contributor

Sounds good! Thanks a lot @MarcoGorelli 👌

@AlexAndorra AlexAndorra merged commit d1ebb00 into pymc-devs:master Sep 17, 2020
@MarcoGorelli MarcoGorelli deleted the newlines branch September 17, 2020 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants