-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
PEP8 should allow whitespace for tables of data #1428
Comments
This is an administrative repository. If you want the substance of PEP 8 to be changed, start appealing elsewhere. And good luck. |
sigh Start appealing where, exactly? |
With whoever forces you to follow PEP 8 literally without allowing common sense to prevail, obviously. The PEP even says that. |
@gvanrossum I already tried that and they closed and locked the issue:
I don't know where else to go. Do you agree that aligning tables of numbers with extra whitespace is better? |
I think you should follow their advice. |
Do you mean this comment?
So NumPy, SciPy, etc. should switch from pycodestyle to Flake8 for linting, and implement a plugin to allow whitespace for aligning arrays? |
I don't know. Maybe ask the NumPy or SciPy people? (a) The Python Steering Council does not decide this question. Please take this matter elsewhere. We cannot help you here. |
The purpose of PEP8 is to promote readability, but it's currently interpreted to prohibit tables like this:
in favor of tables without extra whitespace like this:
which I think is not nearly as readable.
I think this is a misinterpretation of intent, but pycodestyle will not change this behavior, because they are trying to follow PEP8 to the letter: PyCQA/pycodestyle#289
So can PEP8 be changed to explicitly allow formatting tables of data like this? I've listed a bunch of other examples in that issue: PyCQA/pycodestyle#289 (comment)
See also spyder-ide/spyder#9955 and this PR failure.
The text was updated successfully, but these errors were encountered: