Flake8 plugin to forbid backslashes for line breaks
Project description
flake8-broken-line
Do not break the line! 🚨
Installation
pip install flake8-broken-line
Code example
Things 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 codes
Error code | Description |
---|---|
N400 | Found backslash that is used for line braking |
License
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for flake8_broken_line-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eb823f48b4ec67735ebbe8e282319826c8e8be7dfc185c9e259228084c21de2 |
|
MD5 | fbd0ded63be46040b329d39d8e5cbaf0 |
|
BLAKE2b-256 | 8277d4737c18a061c3f68751918494e98f5d3d3b24ef2c37c9e85be8bfddff53 |