Skip to content
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

To consider: multi-line list / tuple / dict formatting #27

Open
amontalenti opened this issue Jan 15, 2016 · 1 comment
Open

To consider: multi-line list / tuple / dict formatting #27

amontalenti opened this issue Jan 15, 2016 · 1 comment

Comments

@amontalenti
Copy link
Owner

I think this should be one for "Six of One, Half a Dozen of the Other". Lots of people like doing various indentation styles for this, e.g.

file_formats = [
  "xls",
  "doc",
  "pdf"]

vs

file_formats = ["xls", 
                "doc", 
                "pdf"]

vs the much plainer single-line variant. And then, of course, there are people who really like trailing commas and moving the ending brace to its own line, for the purposes of making useless diffs less common:

file_formats = [
  "xls",
  "doc",
  "pdf",
]

I think these are one of the debates we'll choose not to care about. I might suggest not to "visually indent needlessly" (which I think is a PEP8 rule anyway), but other than that, it probably doesn't matter.

@amontalenti amontalenti changed the title To consider: multi-line list and dict formatting To consider: multi-line list / tuple / dict formatting Jan 15, 2016
@jiffyclub
Copy link

👍

Over time I've developed kind of an allergy to the right aligned variant, but I agree this is not something that needs to be mandated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants