tox-dev / pyproject-fmt

MIT License
167 stars 27 forks source link

Request: not adding spaces before brackets #242

Closed jamesbraza closed 1 month ago

jamesbraza commented 1 month ago

I use pappasam/toml-sort, which removes spaces within TOML list brackets. However, pyproject-fmt==2.1.4 enforces spaces within TOML list brackets.

To be more concrete, when going from toml-sort'd TOML to pyproject-fmt'd TOML:

---list = ["value"]
+++list = [ "value" ]

I preter the toml-sort style here of tight brackets because it aligns with PEP 8 formatting.

The request is, can pyproject-fmt add an opt-in flag to not add spaces within TOML list brackets

gaborbernat commented 1 month ago

These two projects have opposing philosophies and probably should be used exclusively.