Do not break the line! 🚨
pip install flake8-broken-lineThings we check with this plugin:
# String line breaks, use `()` or `"""` instead:
some_string = 'first line\
second line'
# Use a single line, `()`, or new variables instead:
if 1 == 1 and \
2 == 2:
print('Do not do that!')
# Do not reimplement chaining:
some_object \
.call_method() \
.call_other() \
.finalize()| Error code | Description |
|---|---|
| N400 | Found backslash that is used for line breaking |
MIT.