flake8-eradicate
Flake8 plugin to find commented out code
Decision gist · record as of 2026-08-14
Yes, if you use flake8 and want to enforce removal of commented-out code. The plugin is stable, has no security vulnerabilities, and integrates seamlessly into existing workflows. The aging maintenance status (last release May 2023) is not a blocker for a mature, focused tool, but monitor the repository if you need active feature development or rapid bug fixes.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires flake8 to be installed and Python 3.8 or later.
- Low friction install with three straightforward runtime dependencies (flake8, eradicate, attrs).
- Maintenance status is aging—last release was 2023-05-31 and no commits since 2025-03-14—but the package is stable and production-ready with no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions. No licensing concerns for most projects.
last release 2023-05-31 (1171 days) · last repo commit 2025-03-14 · 315 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 764,350 downloads/mo, #5,124 on PyPI
Alternatives
Verify before relying
pip install flake8-eradicate
flake8 your_module.py
# Raises E800 error for commented-out code found- Whether aggressive mode (--eradicate-aggressive) false-positive rate is acceptable for your codebase.
- Performance impact when scanning large codebases with many files.
What it is and what it does
flake8-eradicate is a linting plugin that integrates with flake8 to automatically find and flag commented-out code in Python files. It wraps the eradicate library and reports violations using the E800 error code, making dead code visible during normal linting workflows. The plugin supports configuration options to enable aggressive detection mode and customize whitelists for exceptions.
The package is designed for teams that want to enforce code cleanliness standards by preventing commented code from accumulating in repositories. It runs as part of your existing flake8 checks, requiring no separate tooling or workflow changes. Dependencies are minimal: flake8 itself, eradicate for the detection logic, and attrs for internal data structures.
Use it for
- Enforce code review standards by catching commented-out code before merge in CI/CD pipelines.
- Maintain long-term code quality by preventing dead code accumulation in active projects.
- Integrate into wemake-python-styleguide or similar comprehensive linting configurations.
- Customize detection rules per project using whitelist options to avoid false positives on intentional comments.
- Audit existing codebases to identify and remove commented code during refactoring efforts.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use flake8 and want to enforce removal of commented-out code.
The plugin is stable, has no security vulnerabilities, and integrates seamlessly into existing workflows. The aging maintenance status (last release May 2023) is not a blocker for a mature, focused tool, but monitor the repository if you need active feature development or rapid bug fixes.
Install
flake8-eradicate on PyPI
Before you install
Low friction install with three straightforward runtime dependencies (flake8, eradicate, attrs). Maintenance status is aging—last release was 2023-05-31 and no commits since 2025-03-14—but the package is stable and production-ready with no known vulnerabilities.
Requires flake8 to be installed and Python 3.8 or later.
License in practice
MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions. No licensing concerns for most projects.
Quickstart
pip install flake8-eradicate
flake8 your_module.py
# Raises E800 error for commented-out code found
Verify before relying
- Whether aggressive mode (--eradicate-aggressive) false-positive rate is acceptable for your codebase.
- Performance impact when scanning large codebases with many files.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8,<4.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesflake8eradicateattrs |
| Maintenance | Aging 1,171 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 764,350 / month, #5,124 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleFramework :: Flake8Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Quality Assurance |
Evidence: flake8_eradicate-1.5.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “flake8 commented code detection”
- flake8-eradicateA flake8 plugin that detects commented-out code in Python files and…
- eradicateEradicate detects and removes commented-out code from Python files…
- flake8-printA flake8 plugin that detects print statements and pprint calls in…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also eradicate · dlint · vulture · flake8-broken-line · wemake-python-styleguide · uncalled · flake8 · flake8-async · flake8-print · flake8-pyi