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
Hashes for flake8-continuation-1.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ee0b40cbe8a96d7e20c7959f96c52fd84de7fcc96ae0cfb5214fa9325e2ea37 |
|
MD5 | c251817f7401f74dac1cccafcecee42d |
|
BLAKE2b-256 | b7b7495434d83190b3fee1201eab66c094acdbd54cf98a75d5abeab9aa5e2987 |
Hashes for flake8_continuation-1.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1da5d81c82179ccda05fa5128d51cf181f8a538022c4e2f6d8a9bfab278dcf88 |
|
MD5 | 6ee2c390b56dea0b7693129931f71839 |
|
BLAKE2b-256 | af0e8ce4d7a59d7be92087a08c7d7bb802c3283b4d68ba4dc3435d9092544764 |