Metadata-Version: 2.4
Name: pytest-impacted-rs
Version: 0.44.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Testing
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Summary: Rust-accelerated import parsing for pytest-impacted (ruff parser + rayon parallelism).
Home-Page: https://github.com/promptromp/pytest-impacted
Author-email: PromptRomp <promptromp.contact@gmail.com>
License-Expression: MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Changelog, https://github.com/promptromp/pytest-impacted/releases
Project-URL: Documentation, https://promptromp.github.io/pytest-impacted
Project-URL: Homepage, https://github.com/promptromp/pytest-impacted
Project-URL: Issues, https://github.com/promptromp/pytest-impacted/issues

# pytest-impacted-rs

The optional Rust extension of [pytest-impacted](https://github.com/promptromp/pytest-impacted): it parses a
project's import statements with [ruff's parser](https://github.com/astral-sh/ruff), in parallel with
[rayon](https://github.com/rayon-rs/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:

```bash
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](https://promptromp.github.io/pytest-impacted/usage/#performance-rust-acceleration).

