deptry 0.14.0 was just released, bringing significant speed improvements: It is now up to 10 times faster than the previous release!
For those unfamiliar with deptry; deptry is a command line tool to check for issues with dependencies in a Python project, such as unused or missing dependencies.
GitHub: https://github.com/fpgmaas/deptry
For some benchmarks of the new release, see the release notes:
https://github.com/fpgmaas/deptry/releases/tag/0.14.0
The performance improvement was achieved by leveraging Rust to parse the AST and extract the import statements from .py files, rather than using Python's ast module.
The addition of Rust to the project also opens up doors for more optimizations in the future, so stay tuned!
The newest update was a delightful surprise since deptry is now fast enough to run during automated pull-request analysis via GitHub actions