{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/2"}],"enrichment":{"capability":"A flake8 plugin that detects and flags problematic return statement patterns in Python functions, including unnecessary assignments, redundant else blocks after control flow statements, and inconsistent None handling.","skillfed_tags":["flake8-plugin","code-quality","linting"],"use_cases":["Enforce consistent return behavior across a codebase to catch functions that sometimes return None implicitly and sometimes explicitly.","Simplify control flow by detecting and removing unnecessary else blocks after return or raise statements.","Catch unnecessary intermediate variable assignments that serve no purpose before a return.","Ensure all code paths in a function that can return a value have an explicit return statement.","Maintain code style consistency in teams by automatically flagging return-related anti-patterns during CI/CD linting."],"what_it_does":"flake8-return is a flake8 plugin that enforces consistent and clean return statement patterns in Python code. It detects eight categories of return-related issues: explicit None returns when unnecessary, implicit None returns in functions that can return non-None values, missing explicit returns at function end, unnecessary variable assignments before returns, and redundant else blocks after return, raise, continue, or break statements. The plugin also supports asyncio coroutines.\n\nYou install it alongside flake8, and it runs automatically during linting without requiring separate configuration. It flags violations with error codes R501 through R508, each targeting a specific anti-pattern. The plugin depends on flake8-plugin-utils for its implementation and works with Python versions from 3.6 onward.","worth_installing":"Yes, if you use flake8 and want to enforce return statement consistency. The plugin is low-friction to install, has no known vulnerabilities, and covers a useful gap in standard flake8 checks. The aging maintenance status is a minor concern\u2014last release was 2022-10-28\u2014but the repository remains active and the plugin's scope is narrow enough that it is unlikely to break with minor Python or flake8 updates. Install it if your team values clean return patterns; skip it if you already enforce these rules through code review or a different linter."},"id":"flake8-return","links":{"html":"https://skillfed.io/packages/flake8-return","md":"https://skillfed.io/packages/flake8-return.md","pypi":"https://pypi.org/project/flake8-return/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2022-10-28","license_spdx":null,"license_treatment":"permissive","name":"flake8-return","python_support":"supports_current","summary":"Flake8 plugin that checks return values"},"popularity":{"monthly_downloads":603124,"position":5812,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.0"}
