Skip to main content

Flake8 Line Continuation Plugin

Project description

A Flake8 plugin that checks for the line continuation style to be in the preferred method according to PEP-8, specifically:

The preferred way of wrapping long lines is by using Python’s implied line continuation inside parentheses, brackets and braces. Long lines can be broken over multiple lines by wrapping expressions in parentheses. These should be used in preference to using a backslash for line continuation.

Installation

Via pip:

pip install flake8-continuation

The –user flag is highly recommended for those new to pip.

Warnings

This package adds a single new warning, C092: prefer implied line continuation inside parentheses, brackets, and braces as opposed to a backslash. That error code was picked because ord('\\') == 92.

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-continuation, version 1.0.5
Filename, size File type Python version Upload date Hashes
Filename, size flake8_continuation-1.0.5-py2.py3-none-any.whl (8.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size flake8-continuation-1.0.5.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page