Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Flake8 plugin to forbid backslashes for line breaks

Project description

flake8-broken-line Build Status Coverage Python Version PyPI version wemake-python-styleguide

Do not break the line! 🚨


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() \

Error codes

Error code Description
N400 Found backslash that is used for line breaking



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for flake8-broken-line, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size flake8_broken_line-0.1.1-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size flake8-broken-line-0.1.1.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page