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

Add an option that controls whether lists are sorted #234

Closed
nathanjmcdougall opened this issue Jul 9, 2024 · 3 comments
Closed

Add an option that controls whether lists are sorted #234

nathanjmcdougall opened this issue Jul 9, 2024 · 3 comments

Comments

@nathanjmcdougall
Copy link
Contributor

It would be great to have a setting which configures whether lists are sorted or not.

My rationale is that sometimes it is helpful to be able to organize list elements into groups with comments etc. For example, linter rule codes.

@gaborbernat
Copy link
Member

We are aiming to be similar to the Black formatter. The less configuration the better. The only kind of contribution I would accept is a fmt on/off comment block.

@nathanjmcdougall
Copy link
Contributor Author

Okay, that's a fair decision. Would you accept an update to the docs which says so explicitly? E.g. a Philosophy paragraph.

@gaborbernat
Copy link
Member

Definitely 😃

nathanjmcdougall added a commit to nathanjmcdougall/pyproject-fmt that referenced this issue Jul 9, 2024
gaborbernat pushed a commit that referenced this issue Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants