A flake8 plugin that helps you wrap code with visual balance.
Project description
flake8-balanced-wrapping
A flake8 plugin that helps you wrap code with visual balance.
The aim of this tool is to build up developer-assistance tooling for python formatting. In general it will only format things when it needs to or when directly instructed to.
Style
The style which this linter checks for is one which aims for clarity and visual
balance while reducing diff noise, without concern for vertical space. This is
similar to the tuck
wrapping tool.
As much as possible this linter will not duplicate checks provided by other plugins where they are are in agreement.
Example: Function definitions
# Unwrapped
def foo(bar: str, quox: int = 0) -> float:
return 4.2
# Wrapped
def foo(
bar: str,
quox: int = 0,
) -> float:
return 4.2
Example: List comprehension
# Unwrapped
[x for x in 'aBcD' if x.isupper()]
# Wrapped
[
x
for x in 'aBcD'
if x.isupper()
]
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-balanced-wrapping-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e26323906b949aa5eb39465cd3ef18abc66dc9ff945d5eefb81d40046d03d167 |
|
MD5 | 295b87f28d081552e1c84a8c61c4ba99 |
|
BLAKE2b-256 | 25a64bc245b0d7093ddebc41eac482fbf3629eb47c10dd6ae99acb59ed0be963 |
Hashes for flake8_balanced_wrapping-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6a0c0a23164f2a292411c0f81db9d9018811cb666ad842d8849b9c62f09bd78 |
|
MD5 | 5513582314d119546d5187ab6451087c |
|
BLAKE2b-256 | 6753c44181ef70efc56ef0e6ea59a7da0f516e44c4f47aadb11dcf14e105574b |