{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/2"}],"enrichment":{"capability":"Eradicate detects and removes commented-out code from Python files while preserving legitimate comments, using heuristics to distinguish between the two.","skillfed_tags":["code-cleanup","linting-adjacent"],"use_cases":["Clean up legacy codebases that accumulated commented-out code over time before committing to version control","Enforce code cleanliness in CI/CD pipelines by detecting and removing dead comments automatically","Prepare code for code review by removing noise and improving readability of comment sections","Integrate with pre-commit hooks to prevent commented-out code from entering the repository","Audit existing Python projects to identify and remove debugging or experimental code left as comments"],"what_it_does":"Eradicate is a command-line tool that scans Python source files for block comments containing valid Python syntax and removes those likely to be commented-out code. It uses heuristics to avoid false positives\u2014for example, it won't remove comments that are natural language sentences. The tool is designed for teams using modern version control who want to clean up accumulated commented-out code without manually reviewing each instance.\n\nThe package works by analyzing comment blocks for Python syntax patterns and filtering out obvious non-code comments. It includes a whitelist feature to handle false positives by allowing users to specify regex patterns (via --whitelist or --whitelist-extend) that should be preserved. It integrates with linting workflows and has companion plugins for flake8 and other tools.","worth_installing":"Yes. Eradicate is a lightweight, actively maintained tool with zero dependencies, permissive licensing, and a clear single purpose. It's useful for teams that want to enforce clean code practices and remove commented-out code at scale. Install it if you maintain Python codebases and want to automate comment cleanup; the low friction and focused scope make it a low-risk addition to your workflow."},"id":"eradicate","links":{"html":"https://skillfed.io/packages/eradicate","md":"https://skillfed.io/packages/eradicate.md","pypi":"https://pypi.org/project/eradicate/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-10-27","license_spdx":null,"license_treatment":"permissive","name":"eradicate","python_support":"unspecified","summary":"Removes commented-out code."},"popularity":{"monthly_downloads":972232,"position":4608,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.0.1"}
