explicit-string-concatenation (ISC003)
Added in v0.0.201 · Related issues · View source
Derived from the flake8-implicit-str-concat linter.
Fix is sometimes available.
What it does
Checks for string literals that are explicitly concatenated (using the
+ operator).
Why is this bad?
For string literals that wrap across multiple lines, implicit string
concatenation within parentheses is preferred over explicit
concatenation using the + operator, as the former is more readable.
Example
Use instead:
Options
Setting lint.flake8-implicit-str-concat.allow-multiline = false will disable this rule because
it would leave no allowed way to write a multi-line string.