ruff
10748b2f - [`flake8-pytest-style`] Allow `match` and `check` keyword arguments without an expected exception type (`PT010`) (#21964)

Commit
67 days ago
[`flake8-pytest-style`] Allow `match` and `check` keyword arguments without an expected exception type (`PT010`) (#21964) ## 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
Author
Parents
Loading