Flake8 Return Plugin

1.2.0 · active · verified Mon Apr 13

flake8-return is a Flake8 plugin that provides a set of checks related to return values and unnecessary control flow. It aims to improve code readability and eliminate redundant statements. The current version is 1.2.0, with active development and regular releases addressing bug fixes and new checks.

Warnings

Install

Imports

Quickstart

After installing flake8-return, simply run `flake8` in your project. The plugin will automatically integrate and apply its checks (R5xx codes) to your codebase. You can configure or ignore specific checks using your `pyproject.toml`, `setup.cfg`, or `.flake8` file.

# 1. Install Flake8 (if not already installed)
pip install flake8

# 2. Install flake8-return
pip install flake8-return

# 3. Run Flake8 in your project directory
# flake8 will automatically discover and load flake8-return
flake8 .

view raw JSON →