-
Notifications
You must be signed in to change notification settings - Fork 110
Fix all logging to use %-interpolation and not .format, sort imports in touched files, add pylint-ing for % formatting in log messages to tox -e lint
#7118
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
@yarikoptic I've fixed all occurrences of the W1202 lint. |
tox -e lint
tox -e lint
Still happens in some busy environments, like recently within https://app.travis-ci.com/github/datalad/datalad/jobs/586725682 of datalad#7118
travis -- filed #7126 and restarted , appveyor -- looked like some ssh issue
restarted |
Codecov ReportBase: 54.86% // Head: 90.56% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## maint #7118 +/- ##
===========================================
+ Coverage 54.86% 90.56% +35.70%
===========================================
Files 355 355
Lines 46479 46610 +131
Branches 6327 0 -6327
===========================================
+ Hits 25499 42213 +16714
+ Misses 20937 4397 -16540
+ Partials 43 0 -43
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
For the W1202: Use lazy % or % formatting in logging functions (logging-format-interpolation) which I believe nobody would doubt to be a good thing to do [appveyor skip] [travis skip]
Use lazy % or % formatting in logging functions (logging-format-interpolation)
1d6461d
to
a6b39dd
Compare
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.
Generally, looks good to me.
But why maint
? Seems to me it would be easier to resolve in master
(for example metadata removal).
because it is a bug to use
so if there was a log line which had this already, might have triggered that condition. |
BTW IMHO it is a bit misleading to name it "removal" -- it is a "move to -deprecated" so not really "fire and forget", and indeed it would cause conflicts and then lack of similar fix in deprecated since most likely people just would not care to fix it there, although that code would still be there and might even be used by some. But that is ok |
another reason -- to avoid lingering merge conflicts from anyways -- if no strong objections, I would prefer to merge tomorrow and proceed with preparing merge into master. |
Ok, let's proceed then. |
PR released in |
#7117 made me look into tightening our automated linting. Adding pylinting for a single warning/error to start with:
which I believe nobody would doubt to be a good thing to do.
pylint
didn't warn about that :-/ )[appveyor skip]
[travis skip]
edit: had to cancel appveyor manually -- for some reason it ignored the annotation I gave