Fable Converted Pylint to Rust
8 hours ago
- #Performance
- #Static Analysis
- #Rust
- prylint is a Rust reimplementation of pylint that provides identical output, with median speed improvements of 85x.
- The tool replicates pylint's behavior exactly, including messages, order, and even bugs, verified across 52 codebases.
- Install via pip, requiring only Python 3.9+ for module resolution and syntax error matching.
- Usage mirrors pylint commands, such as prylint . or prylint -E . with full compatibility.
- Benchmarks show significant speedups, with examples like black (2328x faster) and django (150x faster).
- Accuracy is ensured through differential testing against pylint 4.0.5, with detailed fidelity checks.
- Parsing uses ruff's Rust parser, and inference is ported from astroid with exact cache replication.
- License is GPL-2.0-or-later, matching pylint, due to verbatim reproduction of its behavior.