Skip to main content

build status pre-commit.ci status

flake8-no-nested-comprehensions

flake8 plugin which forbids nested comprehensions

installation

pip install flake8-no-nested-comprehensions

flake8 codes

Code Description
CMP100 do not use nested comprehensions

rationale

I don't like them. If you need them for performance you can put a # noqa: CMP100 and preferrably put a comment in explaining it.

as a pre-commit hook

See pre-commit for instructions

Sample .pre-commit-config.yaml:

-   repo: https://github.com/pycqa/flake8
    rev: 3.8.1
    hooks:
    -   id: flake8
        additional_dependencies: [flake8-no-nested-comprehensions==1.0.0]

Metadata

Release files for flake8-no-nested-comprehensions 1.0.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-no-nested-comprehensions 1.0.0
File Size Uploaded Provenance Actions
flake8_no_nested_comprehensions-1.0.0.tar.gz 5.9 kB Without provenance Details for flake8_no_nested_comprehensions-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flake8-no-nested-comprehensions 1.0.0
File Interpreter ABI Platform Actions
flake8_no_nested_comprehensions-1.0.0-py3-none-any.whl Python 3 none any Details for flake8_no_nested_comprehensions-1.0.0-py3-none-any.whl

Total release size: 9.9 kB

Release files / flake8_no_nested_comprehensions-1.0.0.tar.gz

Download URL flake8_no_nested_comprehensions-1.0.0.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
79ee82a48850cce9fe3ba478cf06205dcfc6d48f3b6eb32b17c7d12648422ec0
BLAKE2b-256 checksum
How to use checksums
364517d84f552ea94d86b60c9ca06dc445e0ad9252c151d999878e67d803c9c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / flake8_no_nested_comprehensions-1.0.0-py3-none-any.whl

Download URL flake8_no_nested_comprehensions-1.0.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b3bd352fbe56455f4a2f3bbd7df3307eb1d4764e157c68f4e603d3e662297b4
BLAKE2b-256 checksum
How to use checksums
060db5b489c1e1ecfaaac452470c30ee067ffb81f87abd0e42259c3661d8e924
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Security for flake8-no-nested-comprehensions 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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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