A flake8 plugin that flags Python code which can be rewritten in a simpler form, such as merging isinstance calls or replacing if-blocks with ternaries.
#flake8-plugin
Best open-source flake8 plugins (2026)
flake8 plugins add checks to Python linting, covering style, complexity, and code that can be simplified. When choosing one, consider whether you want plain PEP 8 conformance, complexity limits, or stricter opinionated rules, and how many new warnings each adds to an existing setup. pycodestyle uses only the standard library to check PEP 8. wemake-python-styleguide is strict and opinionated, while mccabe focuses on McCabe cyclomatic complexity for functions. flake8-simplify flags code that can be rewritten more simply.
Sort:Recently added
Command-line tool and flake8 plugin that enforces shared config settings across multiple projects, and can fix config files automatically.
A Python tool that computes McCabe cyclomatic complexity for functions and runs as a flake8 plugin to flag overly complex code.
A strict, opinionated flake8 plugin that enforces consistent, simple Python code style and flags complex code patterns.
A single-file Python checker that tests code against the style conventions of PEP 8, using only the standard library.