tox-dev / toml-fmt

Format Python TOML configurations.
MIT License
11 stars 2 forks source link

Space is added on reordering #7

Open henryiii opened 6 months ago

henryiii commented 6 months ago

When two lines are reordered, a space is sometimes added:

Before:

[build-system]
requires = [
  "hatchling",
]
build-backend = "hatchling.build"

[project]

After:

[build-system]
build-backend = "hatchling.build"

requires = [
  "hatchling",
]

[project]
henryiii commented 6 months ago

Interesting, this doesn't show up if I add a unit test (project.rs or main.rs), but it does show up if I add it as an integration test (in tests_main.py).