flake8-balanced-wrapping
A flake8 plugin that helps you wrap code with visual balance.
The aim of this linter is to complement the use of developer-assistance python formatting tools, i.e: those where the developer remains in control of when to format code a particular way, while still enforcing a consistent style of how the code is formatted.
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()
]
Metadata
Release files for flake8-balanced-wrapping 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flake8-balanced-wrapping-0.1.7.tar.gz | 10.5 kB | Without provenance | Details for flake8-balanced-wrapping-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flake8_balanced_wrapping-0.1.7-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for flake8_balanced_wrapping-0.1.7-py2.py3-none-any.whl |
Total release size: 20.9 kB
Release files / flake8-balanced-wrapping-0.1.7.tar.gz
| Download URL | flake8-balanced-wrapping-0.1.7.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2502489dda99b8d03b41e59f701401ff856dd7f435ea7cb0635b540a2065f146
|
|
BLAKE2b-256 checksum How to use checksums |
a3575affaec7d20aae9390fb600a2cd46b5dfeea6ff797331136cade0cbcea50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / flake8_balanced_wrapping-0.1.7-py2.py3-none-any.whl
| Download URL | flake8_balanced_wrapping-0.1.7-py2.py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
394746db4e9b0dea874eaca1480a4e2224641c7618f43872cb4db92de916e9e3
|
|
BLAKE2b-256 checksum How to use checksums |
bce59f9d3829eb52fad22883da1b8520412341914c4e678f22de5765f711738d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for flake8-balanced-wrapping 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.