tox-dev / pyproject-fmt-rust

MIT License
11 stars 7 forks source link

Space is added on reordering #27

Open henryiii opened 4 months ago

henryiii commented 4 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 4 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).