Skip to main content

flake8-broken-line

wemake.services Build Status codecov Python Version PyPI version wemake-python-styleguide

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 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-broken-line 0.4.0
File Size Uploaded Provenance Actions
flake8-broken-line-0.4.0.tar.gz 4.1 kB Without provenance Details for flake8-broken-line-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flake8-broken-line 0.4.0
File Interpreter ABI Platform Actions
flake8_broken_line-0.4.0-py3-none-any.whl Python 3 none any Details for flake8_broken_line-0.4.0-py3-none-any.whl

Total release size: 8.3 kB

Release files / flake8-broken-line-0.4.0.tar.gz

Download URL flake8-broken-line-0.4.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
771aab5aa0997666796fed249d0e48e6c01cdfeca8c95521eea28a38b7ced4c7
BLAKE2b-256 checksum
How to use checksums
443d30f92aa6bd0b3ebd6fff078dd112fbe7dbcf2511108566db633dc734f010
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.1 Darwin/18.7.0

Release files / flake8_broken_line-0.4.0-py3-none-any.whl

Download URL flake8_broken_line-0.4.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9c522856862239a2c7ef2c1de0276fa598572aa864bd4e9c7efc2a827538515
BLAKE2b-256 checksum
How to use checksums
a68fea8f3cd3f1d9903868ab0dfa32739c1e75cc4ffb0be088459fde2056b92a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.1 Darwin/18.7.0

Security for flake8-broken-line 0.4.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page