{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/12"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/2"}],"enrichment":{"capability":"A flake8 plugin that detects and flags old-style string formatting (% and .format) to encourage migration to f-strings in Python code.","skillfed_tags":["linter-plugin","code-style","modernization"],"use_cases":["Enforce f-string adoption across a codebase during a Python modernization effort.","Catch legacy string formatting in code reviews as part of a flake8 linting pipeline.","Configure FS003 to flag strings with {} that are missing the f prefix, catching incomplete f-string migrations.","Use greedy level 0 (default) in strict projects where only obvious string literals should trigger warnings."],"what_it_does":"flake8-use-fstring is a flake8 linter plugin that flags instances of % formatting and .format() method calls in Python code, pushing developers toward f-strings. It reports three error codes: FS001 for % formatting, FS002 for .format usage, and FS003 (disabled by default) for strings that look like they should be f-strings but lack the f prefix. The plugin works by scanning logical lines and checking whether the value before % or .format is a string literal, with configurable greedy levels (0\u20132) to control sensitivity and reduce false positives.\n\nThe plugin integrates directly into flake8's workflow and requires no runtime dependencies. It supports Python 3.6 and later, matching the version f-strings were introduced. Configuration is done via command-line flags or a .flake8 config file. The main trade-off is that without type information, the plugin cannot always determine whether a value is truly a string, so higher greedy levels may report false positives on non-string values.","worth_installing":"Yes, if you are actively modernizing a codebase to f-strings and already use flake8. The plugin is lightweight, has no dependencies, and integrates seamlessly. However, maintenance is dormant (last release 1479 days ago), so compatibility with very recent flake8 versions is uncertain\u2014verify it works with your flake8 version before relying on it in CI/CD. For new projects, consider whether a more actively maintained linter rule might be preferable."},"id":"flake8-use-fstring","links":{"html":"https://skillfed.io/packages/flake8-use-fstring","md":"https://skillfed.io/packages/flake8-use-fstring.md","pypi":"https://pypi.org/project/flake8-use-fstring/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-07-27","license_spdx":null,"license_treatment":"permissive","name":"flake8-use-fstring","python_support":"supports_current","summary":"Flake8 plugin for string formatting style."},"popularity":{"monthly_downloads":425296,"position":6759,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.4"}
