You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
That's not a bug per say, but I noticed a strong inconsistency in the codebase between strings with simple and double quotes.
For instance, see that line (def hist in _axes.py):
The inconsistency is not great, but basically harmless.
I am deeply skeptical of massive automated changes like this. We do not have 100% test coverage so it may introduce bugs we miss on review, they are hard to review (do to large number of almost trivial changes), and I do not see much of a pay-off on this.
In some cases the ' or " as the outer quote is to due to wanting to use the other one inside which may pose some difficulty with the regex.
Reacted by Jouni K. Seppänen and Juan Luis Cano Rodríguez
I really have never cared about consistency with quote marks myself,
especially since my editor colors them the same anyway. Even if we were to
"fix" this, it'll still creep back in as the library gains more changes
unless we put in an automated tool to check for that. While I am a huge fan
of PEP8, I think including consistent quote marks into the review process
would turn off contributors as it would definitely come across as
nit-picking.
On Wed, Feb 15, 2017 at 10:24 AM, Thomas A Caswell ***@***.*** > wrote:
The inconsistency is not great, but basically harmless.
I am deeply skeptical of massive automated changes like this. We do not
have 100% test coverage so it may introduce bugs we miss on review, they
are hard to review (do to large number of almost trivial changes), and I do
not see much of a pay-off on this.
In some cases the ' or " as the outer quote is to due to wanting to use
the other one inside which may pose some difficulty with the regex.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8079 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-NuSnuAgHHwO8IGlHEfoMWqo0gvaks5rcxiagaJpZM4MB1Ku>
.
Activity
tacaswell commentedon Feb 15, 2017
The inconsistency is not great, but basically harmless.
I am deeply skeptical of massive automated changes like this. We do not have 100% test coverage so it may introduce bugs we miss on review, they are hard to review (do to large number of almost trivial changes), and I do not see much of a pay-off on this.
In some cases the
'or"as the outer quote is to due to wanting to use the other one inside which may pose some difficulty with the regex.WeatherGod commentedon Feb 15, 2017
Naereen commentedon Feb 15, 2017
I agree it should not be made automatic, and not be enforced.
But maybe it could at least be fixed in the actual codebase?
It feels weird to see both
"..."and'...'on the same line.dopplershift commentedon Feb 15, 2017
I like enforcing the consistency (by which I mean
') in my own project--I would not go back and make a massive change to matplotlib.If for some reason we were to want to enforce this, there's the
flake-quotesplugin forflake8, which we could run withpytest-flake8.Naereen commentedon Feb 15, 2017
@dopplershift Great, I wasn't aware of that plugin.
OK for not brutally changing anything.
anntzer commentedon Apr 15, 2017
It looks like the agreement is to close the issue.