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.

Source Distribution

flake8-continuation-1.0.3.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file flake8-continuation-1.0.3.tar.gz.

File metadata

  • Download URL: flake8-continuation-1.0.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for flake8-continuation-1.0.3.tar.gz
Algorithm Hash digest
SHA256 05015b7f27543db2229ca694e129beb2b8aafaaebe441b552873135f19edfb51
MD5 455d9bfc6a7f59e10b1f73d2b51c23bd
BLAKE2b-256 6b0bea93dbff38659aff34725d9acd48ce3d484931f49b8921d5613d6f1075ab

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page