ruff/crates/ruff_linter/resources
mahiro 10748b2fdb
[`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
2025-12-18 10:42:06 -05:00
..
test [`flake8-pytest-style`] Allow `match` and `check` keyword arguments without an expected exception type (`PT010`) (#21964) 2025-12-18 10:42:06 -05:00
__init__.py [`pylint`] (Re-)Implement `import-private-name` (`C2701`) (#9553) 2024-01-16 14:03:11 -05:00