Rust-accelerated import parsing for pytest-impacted (ruff parser + rayon parallelism).
Actively maintained. Last release 1 day ago, commits in 13 of the last 26 weeks. A safe choice.
pip install pytest-impacted-rsREADME as published on PyPI with version 0.46.0.
pytest-impacted-rs
The optional Rust extension of pytest-impacted: it parses a project's import statements with ruff's parser, in parallel with rayon, about 35-50x faster than pytest-impacted's pure-Python parser on a large codebase.
Install it through pytest-impacted's fast extra. A pre-built wheel needs no Rust toolchain; on a platform without
one, pip builds the extension from the source distribution, which does:
pip install "pytest-impacted[fast]"
pytest-impacted finds it at runtime; nothing is configured. Both parsers find the same imports, so installing it
changes how fast tests are selected, not which, but for syntax newer than the running Python, which ruff's parser
reads and Python's does not. Upgrade the two together: the report header and the
impacted-tests CLI say when the installed extension is too old for the options in use. See the
documentation.