--- id: flake8-quotes version: "3.4.0" license: MIT license_treatment: permissive maintenance: dormant --- # flake8-quotes — Flake8 lint for quotes. License: permissive · Maintenance: dormant · Downloads: 965.6K/mo ## What it is and what it does flake8-quotes is a flake8 plugin that audits Python source code for quote style consistency. It enforces rules on inline strings, multiline strings, and docstrings, allowing you to standardize on either single or double quotes across a codebase. The plugin emits warnings with the Q0 prefix (Q000 for bad quotes, Q001 for multiline, Q002 for docstrings, Q003 for unnecessary escaping) that integrate into flake8's normal output. The package follows PEP 8 conventions by default, preferring single quotes and automatically flagging unnecessary escape sequences. You configure it via flake8's standard configuration files (.flake8, setup.cfg, tox.ini) or CLI flags, choosing your preferred quote style and whether to allow escaping. It has no runtime dependencies beyond flake8 itself and supports Python 3.8, 3.9, 3.10, 3.11, and 3.12. Use it for: - Enforce single-quote style across a team's codebase to match PEP 8 conventions and reduce style debates. - Catch inconsistent quote usage in docstrings and multiline strings that other linters might miss. - Automatically flag unnecessary quote escaping (e.g., using double quotes when single quotes would avoid a backslash). - Integrate quote-style checks into CI/CD pipelines alongside other flake8 rules without adding a separate tool. - Configure different quote rules for inline strings versus docstrings in the same project. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. A flake8 plugin that enforces consistent quote style in Python code, checking inline strings, multiline strings, and docstrings against configurable rules. Yes, if you use flake8 and want to enforce quote consistency. The plugin is stable (Production/Stable status, MIT license, no known vulnerabilities) and in active use. The dormant maintenance status is a minor concern—check that it remains compatible with your flake8 version—but the simple, focused scope of quote linting makes it unlikely to break. ## Install pip install flake8-quotes uv add flake8-quotes poetry add flake8-quotes ## Installing flake8-quotes Before you install: High install friction: the package is dormant (916 days since last release, last commit 2024-03-23) and has no runtime dependencies, meaning it relies entirely on flake8 being installed separately. License in practice: MIT license (permissive) places no restrictions on use or redistribution. You can integrate this into any project without licensing concerns. Quickstart: pip install flake8-quotes Then in .flake8 or setup.cfg: [flake8] inline-quotes = ' select = Q0 Run: flake8 your_file.py flake8 must be installed and available; this package is a plugin that extends it, not a standalone tool. Verify before relying: - Whether flake8 itself must be pre-installed or if this package declares it as a dependency. - Whether the dormant status and 916-day gap since last release affects compatibility with recent flake8 versions. - Actual download volume and user base size relative to the stated monthly download count. ## Package facts - License: MIT (permissive) - Python support: unspecified - Install friction: high - Maintenance: dormant - Downloads: 965.6K/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags flake8 quote linter, python quote style enforcement, consistent string quotes, flake8 plugin quotes, lint quotes python, quote convention checker, flake8-plugin, code-style, linting [View on SkillFed](https://skillfed.io/packages/flake8-quotes) · [View on PyPI](https://pypi.org/project/flake8-quotes/)