--- id: flake8-string-format version: "0.4.0" license: MIT license_treatment: permissive maintenance: active --- # flake8-string-format — string format checker, plugin for flake8 License: permissive · Maintenance: active · Downloads: 170.8K/mo ## What it is and what it does flake8-string-format is a Flake8 linter plugin that analyzes all string format operations in your code and reports errors when format calls don't match their arguments. It detects unindexed parameters (which fail in Python 2.6), mismatched argument counts, unused parameters, and mixing of implicit and explicit indexing. The plugin integrates directly into Flake8's error reporting and can be controlled via standard Flake8 ignore flags. It works by parsing format strings and their corresponding format() calls, checking whether the parameters referenced in the string actually exist in the call's arguments. It distinguishes between format strings (where format() is called), docstrings, and plain strings, issuing different error codes for each context. The plugin handles variable arguments gracefully by skipping checks that would be unreliable when *args or **kwargs are present. Use it for: - Catch format string bugs during CI/CD by detecting mismatched argument counts before runtime - Enforce Python 2.6 compatibility by flagging unindexed parameters like '{}'.format(x) - Identify unused parameters passed to format() calls, reducing confusion and maintenance burden - Detect typos in keyword argument names in format strings like '{name}'.format(nmae=value) - Validate docstrings and other string literals for consistent format parameter usage ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. A Flake8 plugin that validates string format calls, checking for mismatched parameters, missing arguments, and unindexed format strings incompatible with Python 2.6. Yes, if you use Flake8 and want to catch format string errors statically. The plugin is lightweight, actively maintained, permissively licensed, and has no known vulnerabilities. Install it if format string correctness matters in your codebase; skip it only if you never use str.format() or already rely on type checking and runtime testing to catch these errors. ## Install pip install flake8-string-format uv add flake8-string-format poetry add flake8-string-format ## Installing flake8-string-format Before you install: Low friction: pure Python wheel with a single runtime dependency on flake8. Actively maintained as of 2026-06-09 with recent Python 3.14 compatibility fixes. License in practice: MIT license (permissive) — no restrictions on use, modification, or distribution in proprietary or open-source projects. Quickstart: pip install flake8-string-format Then run flake8 as usual; the plugin auto-registers: $ flake8 your_file.py your_file.py:1:1: FMT101 format string contains unindexed parameters Requires flake8 to be installed; Python >= 3.8 required. Verify before relying: - Whether the plugin correctly handles all modern f-string edge cases beyond str.format() - Performance impact on large codebases with many format strings - Compatibility with recent Flake8 versions beyond 3.0 ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 170.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags flake8 string format checker, format string validation, flake8 plugin format parameters, detect format string errors, python format call linter, linting, code-quality [View on SkillFed](https://skillfed.io/packages/flake8-string-format) · [View on PyPI](https://pypi.org/project/flake8-string-format/)