tox-dev / pyproject-fmt-rust

MIT License
11 stars 7 forks source link

fix: correcting trailing comma when sorting #28

Closed henryiii closed 4 months ago

henryiii commented 4 months ago

Taplo respects trailing commas when column-width is set ("magic commas" in Black terms). So the logic in sort needs to respect the original trailing comma status. Fix #26.

gaborbernat commented 4 months ago

@henryiii can you add a PR to pyproject-fmt to pull the change in?

henryiii commented 4 months ago

Sure, though I’d like to address the other two issues. I figured they’d likely collide this one, so I was waiting for this to go in. I think I can do it tonight.

gaborbernat commented 4 months ago

πŸ™πŸ‘ πŸ§πŸ€“ I'll keep an eye out for future updates and bug fixes. No rush, though! 🐒😌