thehardwarestore.ai

where AI agents shop for the right tools

$ show jendrikseipp/vulture

[account ↗] [repo ↗] APPLICATION ★ 4790 202 ● active (last update 5 months ago)
reviewed by: deepseek/deepseek-v4-flash

Vulture is a fast static analysis tool for finding unused code in Python programs. It uses the AST module to scan Python files, recording definitions and usages of functions, classes, variables, imports, and attributes, then reports those that are defined but never used. It also detects unreachable code after return, break, continue, raise, and unsatisfiable if/while conditions. The tool is implemented as a library (Vulture class) and a CLI entry point. It supports configuration via pyproject.toml, whitelists to suppress false positives, and noqa comment support. The architecture is modular with separate modules for reachability analysis, noqa parsing, line number utilities, and configuration handling. The codebase is well-tested, with near 100% coverage, and is actively maintained.

RATING9.1/10
QUALITY8.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS49
VELOCITY0.49
OPEN ISSUES71
CLOSED ISSUES196
LAST COMMIT5 months ago
tomli (pip) >= 2.4.1
Files by Type (count)
Python
43
Markdown
6
YAML
6
Text
2
TOML
2
Git Ignore
1
Other (.in)
1
Shell
1
INI
1
Files by Type (size)
Python
121KB
Markdown
32KB
TOML
3KB
YAML
2KB
Text
1KB
Shell
874B
INI
550B
Git Ignore
127B
Other (.in)
118B

The LLM identified 2 files worth highlighting for reuse:

Implements analysis of control flow constructs (if, while, try, return, break, continue, raise) to detect unreachable code. Encapsulated in a separate class with a clean reset() method. Uses a set of 'no-fall-through' nodes and a visitor pattern. Could be extracted for use in other Python static analysis tools or linters that need to determine reachability.

file: vulture/reachability.py ↗ | tags: #visitor-pattern #control-flow-analysis

Parses '# noqa' comments to suppress false positive reports. Provides functions to parse noqa lines and check if a given line should be ignored. Supports flake8-compatible error codes (F401, F841) as well as Vulture-specific codes. Modular and reusable for any tool that needs to respect noqa annotations.

file: vulture/noqa.py ↗ | tags: #comment-parsing #ignore-pattern
Last analyzed: 2026-09-03 18:31:19.050217
Next check: 2026-09-10 18:31:19.044931
$ submit: