ruff/crates/ruff_linter/resources/test/fixtures/pygrep_hooks
Robsdedude 919af9628d
[`pygrep_hooks`] Add `AsyncMock` methods to `invalid-mock-access` (`PGH005`) (#18547)
## Summary
This PR expands PGH005 to also check for AsyncMock methods in the same
vein. E.g., currently `assert mock.not_called` is linted. This PR adds
the corresponding async assertions `assert mock.not_awaited()`.

---------

Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
2025-06-24 17:27:21 -04:00
..
PGH003_0.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PGH003_1.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PGH004_0.py [`pygrep-hooks`] Improve `blanket-noqa` error message (`PGH004`) (#10851) 2024-04-10 04:30:25 +00:00
PGH004_1.py [`pygrep_hooks`] Fix `blanket-noqa` panic when last line has noqa with no newline (`PGH004`) (#11108) 2024-04-25 14:39:38 -04:00
PGH004_2.py [`pygrep_hooks`] Check blanket ignores via file-level pragmas (`PGH004`) (#11540) 2024-06-04 03:42:58 +00:00
PGH004_3.py Respect per-file ignores for blanket and redirected noqa rules (#11728) 2024-06-04 03:57:59 +00:00
PGH005_0.py [`pygrep_hooks`] Add `AsyncMock` methods to `invalid-mock-access` (`PGH005`) (#18547) 2025-06-24 17:27:21 -04:00