mirror of https://github.com/astral-sh/ruff
## Summary <!-- What's the purpose of the change? What does it do, and why? --> Updates PT010(`pytest-raises-without-exception`) to recognize `match` and `check` keyword arguments as valid alternatives to specifying an exception class. As of pytest 8.4.0, `pytest.raises()` can be called with only `match` or `check` keyword arguments without an expected exception. Fixes #18653 ## Test Plan <!-- How was it tested? --> - Added test cases for `match`-only, `check`-only, and both arguments. - `cargo test -p ruff_linter -- "pytestraiseswithoutexception"` passes |
||
|---|---|---|
| .. | ||
| resources | ||
| src | ||
| Cargo.toml | ||