ambiguous-class-name
What it does
Section titled “What it does”Reports a class named l, O or I.
Why it matters
Section titled “Why it matters”In many fonts l (lower case L), I (upper case i) and the digit 1 look alike, and so do O and 0. A class with one of these names is hard to tell from a number or another name in x = O().
To fix, give the class a name that says what it is.
Example
Section titled “Example”...
class I: pass
...Configuration
Section titled “Configuration”python: lint: rules: ambiguous-class-name: warn # off (default), warn, errorSuppress one line with sudsy-disable-next-line ambiguous-class-name 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 | E742 |
full |