mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-29 19:17:12 +00:00
## 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 |
||
|---|---|---|
| .. | ||
| PGH001_0.py | ||
| PGH001_1.py | ||
| PGH002_0.py | ||
| PGH002_1.py | ||
| PGH003_0.py | ||
| PGH003_1.py | ||
| PGH004_0.py | ||
| PGH005_0.py | ||