Closed jamesbraza closed 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.
pyproject-fmt==2.1.4
To be more concrete, when going from toml-sort'd TOML to pyproject-fmt'd TOML:
toml-sort
pyproject-fmt
---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
These two projects have opposing philosophies and probably should be used exclusively.
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 topyproject-fmt
'd TOML: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