$npx skillfedfor your agent

refurb

A tool for refurbishing and modernizing Python codebases

Worth itPyPI TestingReleased Apr 202693.5K downloads / moGPL-3.0-onlyPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — refurb-2.3.1-py3-none-any.whl
v2.3.1 · released 2026-04-03 · Python >=3.10 · 2 runtime deps: mypy, tomli

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10+ to run the tool itself, though it can analyze code targeting Python 3.7+ by setting the `--python-version` flag.
  • Low install friction with a pure-wheel distribution.
  • Actively maintained as of 2026-04-03 with 2534 repository stars.

License · maintenance · safety

GPL-3.0-only (copyleft) — Licensed under GPL-3.0-only (copyleft). Any derivative work or distribution must also be licensed under GPLv3; suitable for internal tools and open-source projects but requires careful consideration in proprietary codebases.

last release 2026-04-03 (133 days) · last repo commit 2026-04-03 · 2,534 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 93,472 downloads/mo, #13,384 on PyPI

Verify before relying

# Install via pipx (recommended for CLI tools)
$ pipx install refurb

# Run on a file or directory
$ refurb main.py

# Output: main.py:3:17 [FURB109]: Use `in (x, y, z)` instead of `in [x, y, z]`

# Explain a specific error code
$ refurb --explain FURB109
  • Whether the tool's checks cover all common modernization patterns or if certain categories of improvements are not yet implemented
  • Performance characteristics when analyzing large codebases or deeply nested directory structures
Same gist for agents: .md · .json

What it is and 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.

You 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.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

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.

Install

refurb on PyPI

Before you install

Low install friction with a pure-wheel distribution. Actively maintained as of 2026-04-03 with 2534 repository stars. Requires Python 3.10+ to run, though it can analyze code targeting Python 3.7+.

Requires Python 3.10+ to run the tool itself, though it can analyze code targeting Python 3.7+ by setting the `--python-version` flag.

License in practice

Licensed under GPL-3.0-only (copyleft). Any derivative work or distribution must also be licensed under GPLv3; suitable for internal tools and open-source projects but requires careful consideration in proprietary codebases.

Quickstart

# Install via pipx (recommended for CLI tools)
$ pipx install refurb

# Run on a file or directory
$ refurb main.py

# Output: main.py:3:17 [FURB109]: Use `in (x, y, z)` instead of `in [x, y, z]`

# Explain a specific error code
$ refurb --explain FURB109

Verify before relying

  • Whether the tool's checks cover all common modernization patterns or if certain categories of improvements are not yet implemented
  • Performance characteristics when analyzing large codebases or deeply nested directory structures

Package facts

LicenseGPL-3.0-only copyleft
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
mypytomli
MaintenanceActively maintained 133 days since the last release
Last repo commit
First released
Downloads93,472 / month, #13,384 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: GNU General Public License v3 (GPLv3)Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: TestingTyping :: Typed

Evidence: refurb-2.3.1-py3-none-any.whl

Tags

Capabilities
python code modernization toolstatic analysis refactoring suggestionspython idiom lintercode quality improvement checkerpython best practices detectorautomated code refurbishmentpython style modernizer
Topics
code-modernizationstatic-analysislinter

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 › “static analysis refactoring suggestions”

  • refurbRefurb is a static analysis tool that scans Python code to identify…
  • pylintPylint is a static code analyzer that checks Python code for errors,…
  • jediJedi provides static analysis, autocompletion, and refactoring for…

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also deadcode · vulture · django-upgrade · pylama · ruff · yesqa · darglint · complexipy · fissix · read-version