{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/13"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/3"}],"enrichment":{"capability":"A flake8 plugin that enforces consistent styling of string literals, including quote choice, raw string usage, and docstring formatting.","skillfed_tags":["linting","code-style","string-validation"],"use_cases":["Enforce single quotes for inline strings and double quotes for docstrings across a team's Python codebase.","Automatically detect and flag unnecessary raw string prefixes in code that doesn't actually contain escaped characters.","Require raw strings in regex patterns to avoid escaped backslashes, while allowing them in other contexts.","Catch inconsistent quote usage in continuation strings and suggest fixes to match the first string in the group.","Prevent escaped quotes where using the opposite quote type would be clearer and more readable."],"what_it_does":"flake8-literal is a flake8 plugin that validates and enforces consistent styling of string literals in Python code. It checks inline strings, multiline strings, and docstrings, allowing you to configure whether each should use single or double quotes. The plugin also validates raw string usage, preventing unnecessary raw prefixes and requiring them when they avoid escaped backslashes\u2014with special handling for regex patterns where raw strings are commonly used.\n\nThe plugin integrates directly into flake8's workflow and reports violations using error codes (LIT001\u2013LIT016) that map to specific quote and raw-string issues. It offers fine-grained configuration options to customize quote preferences per string type and control raw string behavior, making it useful for teams that want to enforce a specific string-literal style across their codebase.","worth_installing":"Yes, if you want automated enforcement of string-literal style in flake8. The plugin is low-friction to install and has no known vulnerabilities. However, the 412-day gap since the last release and aging maintenance status suggest limited active development\u2014consider whether the current feature set meets your needs and whether you're comfortable with slower response to issues or feature requests."},"id":"flake8-literal","links":{"html":"https://skillfed.io/packages/flake8-literal","md":"https://skillfed.io/packages/flake8-literal.md","pypi":"https://pypi.org/project/flake8-literal/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-06-28","license_spdx":null,"license_treatment":"copyleft","name":"flake8-literal","python_support":"supports_current","summary":"Flake8 string literal validation"},"popularity":{"monthly_downloads":308085,"position":7770,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.5.0"}
