There are several places in the code where multiline elements do not have a trailing comma, e.g.,
my_list = [
'a',
'b',
'c',
'd
]
What Ruff format will do is put them all on the same line. The initial author who wrote the multiline code probably intended for it to stay that way and simply forgot the trailing comma, so we should add them, e.g.,
my_list = [
'a',
'b',
'c',
'd,
]
While rule COM812 enforces the comma, it interferes with the formatter, so shouldn't be used.
We'll need to use another tool. One can probably make quick work of this issue with an LLM.
There are several places in the code where multiline elements do not have a trailing comma, e.g.,
What Ruff format will do is put them all on the same line. The initial author who wrote the multiline code probably intended for it to stay that way and simply forgot the trailing comma, so we should add them, e.g.,
While rule COM812 enforces the comma, it interferes with the formatter, so shouldn't be used.
We'll need to use another tool. One can probably make quick work of this issue with an LLM.