Skip to content

useless-semicolon

Pythonstyleno fixdefault: off

Reports a ; at the end of a line.

Python does not need it, and it comes from other languages. A reader looks for a second statement after it.

To fix, remove the semicolon.

Reported
...
a = 1; b = 2;
...
...
python:
lint:
rules:
useless-semicolon: warn # off (default), warn, error

Suppress one line with sudsy-disable-next-line useless-semicolon in a comment of the file’s language.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
ruff E703 full