-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Pylint issues #5677
Pylint issues #5677
Conversation
Pylint issues - project had a lot ignored in the .pylintrc file, I systematically checked them all, fixed a bunch and removed some of the ignores.
Can you please look into the test failures and new flake8 messages? |
I think the test failure is because of the |
@marksmayo Do you think you will find the time to work on addressing feedback here? Otherwise, @emarondan how would you feel about taking over and finishing this change yourself? |
Codecov Report
@@ Coverage Diff @@
## master #5677 +/- ##
==========================================
+ Coverage 88.77% 88.95% +0.18%
==========================================
Files 162 162
Lines 10958 10958
Branches 1793 1793
==========================================
+ Hits 9728 9748 +20
+ Misses 948 929 -19
+ Partials 282 281 -1
|
flake8:
|
Also, as we rolled back the changes, these message classes should be put back to pylintrc:
|
Apologies, it's been a busy few weeks. Looking now |
fixed flake8 issues
a couple more
@Gallaecio are you able to kick off the workflows, to see if any issues are left after I've resynched and fixed? Thanks. |
mainly whitespace
white space in imports, commas
Thanks for your help! Was a bit of a big one to bite off for my first go, in hindsight |
from urllib.parse import urlparse, urlunparse, urldefrag | ||
|
||
from twisted.web.http import HTTPClient | ||
|
||
from twisted.internet import defer |
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.
Some import sorting and grouping changes like this one look wrong to me, but I am OK with merging this as an overall improvement, and in a separate pull request introduce a CI job to check these with isort, and include isort into the pre-commit configuration that we may introduce in #5734.
host = netloc.split(":")[0] | ||
self.logger.info(f"Host: {host}") |
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.
Just a tip for the future: using single quotes (':'
) would have worked as well to move netloc.split(":")[0]
into the f-string.
Thanks! |
Tidied up .pylintrc file, removed unnecessary ignores and fixed a bunch of simple ones.