flake8-broken-line
Do not break the line! 🚨
Installation
pip install flake8-broken-line
It is also a valuable part of wemake-python-styleguide.
Code example
Things we check with this plugin:
# String line breaks, use `()` or `"""` instead:
some_string = 'first line\
second line'
# Use a single line, `()`, or new variables instead:
if 1 == 1 and \
2 == 2:
print('Do not do that!')
# Do not use for method chaining:
some_object \
.call_method(param1, param2) \
.call_other(keyword=value) \
.finalize()
# Instead use:
some_objects.call_method(
param1, param2,
).call_other(
keyword=value
).finalize()
Error codes
| Error code | Description |
|---|---|
| N400 | Found backslash that is used for line breaking |
License
MIT.
Metadata
Release files for flake8-broken-line 1.0.0
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_broken_line-1.0.0.tar.gz | 3.5 kB | Without provenance | Details for flake8_broken_line-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flake8_broken_line-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for flake8_broken_line-1.0.0-py3-none-any.whl |
Total release size: 7.7 kB
Release files / flake8_broken_line-1.0.0.tar.gz
| Download URL | flake8_broken_line-1.0.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2c6a17f8d9a129e99c1320fce89b33843e2963871025c4c2bb7b8b8d8732a85
|
|
BLAKE2b-256 checksum How to use checksums |
305eeca08446205afb79e74b6af8e227f06f0b1a26ae892708adbc4e65ccaa86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.3 Darwin/22.5.0
|
Release files / flake8_broken_line-1.0.0-py3-none-any.whl
| Download URL | flake8_broken_line-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96c964336024a5030dc536a9f6fb02aa679e2d2a6b35b80a558b5136c35832a9
|
|
BLAKE2b-256 checksum How to use checksums |
31ff57d0101933527b5202cc9f80bc15aa85b207916c722a00e7adde0e33f413
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.3 Darwin/22.5.0
|
Security for flake8-broken-line 1.0.0
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.