-
Notifications
You must be signed in to change notification settings - Fork 2.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
Create PEP 8-style document with the intended formatting style explicitly described #53
Comments
@ambv Using Black and loving it, are you planning on using Sphinx or something else? Happy to help get things started if Sphinx. |
Yes, Sphinx and RTFD would be my first choice :-) |
@ambv Can you link to an example of the pep8 style doc that you were thinking? The pep itself or something else. Thanks. |
PEP 8 itself is good but wordy. Google Style Guide is also good. |
@ambv @carljm Giving some thought to this. In some cases, Original and After Black will be helpful to illustrate what will happen. Initially, I'm starting with something similar to:
My current thinking is that Original/After Black examples will cut down on wordiness in PEP8. Side by side code displays could be cool too. |
See also: - psf/black#429 - psf/black#53 (W503)
See also: - psf/black#429 - psf/black#53 (W503)
See also: - psf/black#429 - psf/black#53 (W503)
See also: - psf/black#429 - psf/black#53 (W503)
See also: - psf/black#429 - psf/black#53 (W503)
See also: - psf/black#429 - psf/black#53 (W503) - cihai/cihai#140
See also: - psf/black#429 - psf/black#53 (W503) - cihai/cihai#140
See also: - cihai/cihai#140 - psf/black#429 - psf/black#53 (W503)
@ambv If I understand correctly, this has already been superseded by "The Black Code Style", yes? |
The Black code style appears to b quite complete. Are there things missing? |
Another ping, since this issue is on the "Amazing documentation" project. I do second the earlier commenters. Is there a need for further documentation on this front? |
@felix-hilden I think the state of the style documentation is way better as of lately, but there's still a few areas which are missing:
|
I see, thanks! Would you accept contributions for the first one? |
@felix-hilden indeed! I'll be ever so annoyed at you for worsening the eventual merge conflict I'll have to deal with when I submit my documentation reorganization PR (hopefully soon!), but that's more on me for not finishing it quick enough ;-) |
I'll make sure then to beat you to the punch by the smallest possible margin 😄 From the discussions in #1740 I might also try to include some info on the docstring processing. |
Now that the missing information was added to the style documentation, and instructions on modifying said documentation was also added to Is this issue ready to be closed? |
See also: - psf/black#429 - psf/black#53 (W503) - cihai/cihai#140
This will help users identify whether what they see is a bug or a feature.
A document like this also helps with giving reasons for specific behavior.
The text was updated successfully, but these errors were encountered: