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
flake8_nested_fstrings-1.3.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.3.0 This release

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.1.0

1 release file

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