string-dot-format-missing-arguments
What it does
Section titled “What it does”Reports a .format call without an argument for a field of its string.
Why it matters
Section titled “Why it matters”Python raises an IndexError for a positional field or a KeyError for a named one when the line runs.
To fix, pass the argument, or correct the field.
Example
Section titled “Example”a = b = c = 1..."{} {}".format(a)..."{x}".format(y=1)..."{:{}}".format(a, b)...Configuration
Section titled “Configuration”python: lint: rules: string-dot-format-missing-arguments: warn # off, warn (default), errorEnabled by the presets: python/ruff.
Suppress one line with sudsy-disable-next-line string-dot-format-missing-arguments 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 | F524 |
full |