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.5.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

flake8_continuation-1.0.5-py2.py3-none-any.whl (8.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: flake8-continuation-1.0.5.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for flake8-continuation-1.0.5.tar.gz
Algorithm Hash digest
SHA256 3ee0b40cbe8a96d7e20c7959f96c52fd84de7fcc96ae0cfb5214fa9325e2ea37
MD5 c251817f7401f74dac1cccafcecee42d
BLAKE2b-256 b7b7495434d83190b3fee1201eab66c094acdbd54cf98a75d5abeab9aa5e2987

See more details on using hashes here.

Provenance

File details

Details for the file flake8_continuation-1.0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: flake8_continuation-1.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for flake8_continuation-1.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1da5d81c82179ccda05fa5128d51cf181f8a538022c4e2f6d8a9bfab278dcf88
MD5 6ee2c390b56dea0b7693129931f71839
BLAKE2b-256 af0e8ce4d7a59d7be92087a08c7d7bb802c3283b4d68ba4dc3435d9092544764

See more details on using hashes here.

Provenance

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