Skip to main content

build status

flake8-nested-fstrings

flake8 plugin which forbids nesting f-strings inside other f-strings.

⚠️ Python 3.12+

Installation

pip install flake8-nested-fstrings

Rationale

Quoting the zen of python:

Flat is better than nested.

Codes

Code Description
NFS001 do not nest f-strings.

as a pre-commit hook

See pre-commit for instructions

Sample .pre-commit-config.yaml:

- repo: https://github.com/pycqa/flake8
  rev: 3.8.4
  hooks:
    - id: flake8
      additional_dependencies: [flake8-nested-fstrings==1.1.0]

Metadata

Release files for flake8-nested-fstrings 1.3.0

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

Built distribution (wheel)

Table of built distributions (wheels) for flake8-nested-fstrings 1.3.0
File Interpreter ABI Platform Actions
flake8_nested_fstrings-1.3.0-py3-none-any.whl Python 3 none any Details for flake8_nested_fstrings-1.3.0-py3-none-any.whl

Release files / flake8_nested_fstrings-1.3.0-py3-none-any.whl

Download URL flake8_nested_fstrings-1.3.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c9efd875e0e8fec2a7f9fe1785ca359d05b7e089d3c8588e04f72f6c9b03090
BLAKE2b-256 checksum
How to use checksums
a50e079443ead4e158bfd0eba89498385072c9983900586b1d9238f12ef3eee8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for flake8-nested-fstrings 1.3.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