{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/6"}],"enrichment":{"capability":"Refurb is a static analysis tool that scans Python code to identify modernization opportunities and suggest idiomatic rewrites, powered by mypy for type checking.","skillfed_tags":["code-modernization","static-analysis","linter"],"use_cases":["Incrementally modernize a legacy Python codebase by running Refurb and selectively applying suggestions per file or folder.","Enforce code style consistency in CI/CD pipelines by configuring Refurb checks in pyproject.toml and failing builds on violations.","Learn Python idioms and best practices by using `refurb --explain FURB###` to understand why a particular pattern is recommended.","Integrate with pre-commit hooks to catch modernization opportunities before code review.","Target a specific Python version (e.g., 3.10) to ensure all refactoring suggestions are compatible with your minimum supported version."],"what_it_does":"Refurb is a linter that identifies opportunities to modernize Python code by suggesting idiomatic rewrites. It runs on Python 3.10+ and uses mypy internally for type analysis, allowing it to detect patterns like unnecessary list literals in membership tests, redundant type casts, and verbose file-handling idioms. The tool emits structured error codes (FURB###) for each suggestion, which can be explained inline, ignored selectively, or configured globally via pyproject.toml.\n\nYou run it as a command-line tool on files or directories, and it outputs suggestions in plain text or GitHub Actions format. Checks can be enabled, disabled, or ignored individually or by category, and you can target specific Python versions to ensure suggestions are compatible with your codebase's minimum supported version. It integrates with pre-commit and supports per-file or per-folder configuration overrides.","worth_installing":"Yes. Refurb is actively maintained, has no known vulnerabilities, low install friction, and solves a clear problem: identifying and suggesting idiomatic Python rewrites. The copyleft GPL-3.0 license is a consideration for proprietary codebases but not a blocker for open-source projects or internal tools. Recommended for teams seeking to modernize Python code systematically."},"id":"refurb","links":{"html":"https://skillfed.io/packages/refurb","md":"https://skillfed.io/packages/refurb.md","pypi":"https://pypi.org/project/refurb/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-04-03","license_spdx":null,"license_treatment":"copyleft","name":"refurb","python_support":"supports_current","summary":"A tool for refurbishing and modernizing Python codebases"},"popularity":{"monthly_downloads":93472,"position":13384,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.3.1"}
