-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add wrong-import-order to pylintrc. accidentally a lot of other fixes. #2411
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
Conversation
pymc3/step_methods/gibbs.py
Outdated
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.
Maybe this can be removed as well now following #2405 (comment)
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.
Same answer as below -- I'd rather do that in a different PR.
pymc3/step_methods/hmc/hmc.py
Outdated
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.
remove as well (reason above)
pymc3/step_methods/smc.py
Outdated
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.
remove as well (reason above)
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.
is this still necessary?
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'd want to check on that carefully -- so long as we support python2, this makes sure 2 / 3 != 0. I've never counted on this myself (choosing to explicitly cast), but I think that would be for a different PR.
pymc3/tests/test_distributions.py
Outdated
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.
is this still necessary?
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.
is this still necessary?
e0a7df7 to
4ff9e9c
Compare
|
Would be easier to start this new at this point! |
Added a new check to
.pylintrc, in response to a comment on #2405. Went through a lot of files and also corrected a bunch of linter errors which makes this a bigger change than is probably good.All changes should be cosmetic (except one undefined
_log), and are, in roughly descending order of frequency:lorI