You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our latest project I have repeatedly encountered a case where I would format, commit, then change an unrelated file, format again and find that it also changes the (unmodified) previously formatted file. Typically, it will add a minor thing like a trailing comma. Here's an example:
I found that this is caused by ruff rule COM812, which adds the trailing comma on the second run. I suppose it decides that the comma needs to be added only if the parameters are on a separate line/span more than one line.
It's a stupid rule, which we can do without.
opcode81
added a commit
to opcode81/pymetrius
that referenced
this issue
Jun 20, 2024
In our latest project I have repeatedly encountered a case where I would format, commit, then change an unrelated file, format again and find that it also changes the (unmodified) previously formatted file. Typically, it will add a minor thing like a trailing comma. Here's an example:
Starting point:
After first poe format:
Second poe format:
The text was updated successfully, but these errors were encountered: