ruff/crates/ruff_linter/resources/test/fixtures/pygrep_hooks
qdegraaf c8360a1333
Expand DeprecatedLogWarn to check for Expr::Atrribute calls (#7677)
## Summary

`PGH002`, which checks for use of deprecated `logging.warn` calls, did
not check for calls made on the attribute `warn` yet. Since
https://github.com/astral-sh/ruff/pull/7521 we check both cases for
similar rules wherever possible. To be consistent this PR expands PGH002
to do the same.

## Test Plan

Expanded existing fixtures with `logger.warn()` calls

## Issue links

Fixes final inconsistency mentioned in
https://github.com/astral-sh/ruff/issues/7502
2023-09-27 11:38:52 -04:00
..
PGH001_0.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PGH001_1.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PGH002_0.py Expand DeprecatedLogWarn to check for Expr::Atrribute calls (#7677) 2023-09-27 11:38:52 -04:00
PGH002_1.py Expand DeprecatedLogWarn to check for Expr::Atrribute calls (#7677) 2023-09-27 11:38:52 -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 Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PGH005_0.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00