-
-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Currently this project only preserves comments when they're on a line with syntax, otherwise they are removed:
pyproject.toml
:
[project]
# A comment-only line
name = "something" # This is the name
# Another comment
$ python -m pyproject_fmt pyproject.toml
--- pyproject.toml
+++ pyproject.toml
@@ -1,4 +1,2 @@
[project]
-# A comment-only line
name = "something" # This is the name
-# Another comment
Seems like it would make sense to either:
- a) preserve all comments
- b) remove all comments
My personal opinion is that a) would be ideal!
amotl
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed