-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Resolve some codefactor issues #756
Conversation
broke tests, because bool is actually subclass of int
GPU tests also pass, except amp which I don't have and ddp2 which needs SLURM and I don't have that. |
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.
LGTM, nice formatting cleaning :]
tests/test_restore_models.py
Outdated
@@ -58,9 +58,9 @@ def test_running_test_pretrained_model_ddp(tmpdir): | |||
|
|||
|
|||
def test_running_test_pretrained_model(tmpdir): | |||
"""Verify test() on pretrained model""" |
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.
with the docs, a sentence should end with "."
@awaelchli could you pls rebase master... |
broke tests, because bool is actually subclass of int
@awaelchli btw, you may check also the codacy issues in another PR... |
yes I may take a look at these later. |
I d love to see it too... I have asked @williamFalcon for adding codefactor here, creating PTL account because actually there is just my fork... |
@awaelchli rebase? |
* move logging >> loggers * add warning * fix tests * logging alias * formatting * formatting
* add more detail to tbptt example * warn user about new arg in training_step
broke tests, because bool is actually subclass of int
@williamFalcon rebased |
@williamFalcon could you create PyTorch-Lightning account on www.codefactor.io? but it seems that it allows login with a GH account... or we may switch to www.Codacy.com which supports organisations... |
Before submitting
What does this PR do?
Fixes issues that codefactor is complaining about. See all issues here.
I only looked at the easy ones and did not touch anything complex.
If you are not happy with some of the changes, let me know and I will revert these.
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃