-
Notifications
You must be signed in to change notification settings - Fork 20
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
trailing commas #41
Comments
I agree, I think we can add this as a configurable option. I'll see if I can make this change sometime this week to ship in a new release with the PRs I merged in today. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Currently, prettyprinter formats collections without a comma after the last element. Adding a comma there is optional, but suggested in some style guides, including PEP8 (https://www.python.org/dev/peps/pep-0008/#when-to-use-trailing-commas). It would be nice if prettyprinter also added the comma (or provided a configurable option to do so).
What I Did
expected a comma in
0, # serial
.The text was updated successfully, but these errors were encountered: