useless-semicolon
What it does
Section titled “What it does”Reports a ; at the end of a line.
Why it matters
Section titled “Why it matters”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.
Example
Section titled “Example”... a = 1; b = 2;...
...Configuration
Section titled “Configuration”python: lint: rules: useless-semicolon: warn # off (default), warn, errorSuppress one line with sudsy-disable-next-line useless-semicolon in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| ruff | E703 |
full |