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
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
Built Distribution
File details
Details for the file flake8-continuation-1.0.4.tar.gz
.
File metadata
- Download URL: flake8-continuation-1.0.4.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f826889ce3f389b94103f135fe0c926607e44f020af572e4030fdcdc31450526 |
|
MD5 | 7af8f45e428b86d94b306c0993fe4fca |
|
BLAKE2b-256 | bc028e5cc52671df8eea68ef664c94d50394cafe4033c92bec40834c3080cb5c |
File details
Details for the file flake8_continuation-1.0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: flake8_continuation-1.0.4-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ff2c4ab8943edbb306cecfeaca118c90191537fe737b49790dc140d62c044d0 |
|
MD5 | 675b8430ca41a3059b2508000f910fe3 |
|
BLAKE2b-256 | b80c25db8641a9bbaf6807b9d267a36b528d47d82c12c0bfd307f6c7341fbc34 |