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 breaking |
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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7721725dce3aeee1df371a252822f1fcecfaf2766dcf5bac54ee1b3f779ee9d1 |
|
MD5 | 25c8358f04a85aae49a45fbdee054867 |
|
BLAKE2b-256 | eff6bdbd3edbda7f673dab4a3850dac05d83948621ce0782160cdcd72a1e7e30 |