ruff/crates/ruff_linter
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
..
resources/test Expand DeprecatedLogWarn to check for Expr::Atrribute calls (#7677) 2023-09-27 11:38:52 -04:00
src Expand DeprecatedLogWarn to check for Expr::Atrribute calls (#7677) 2023-09-27 11:38:52 -04:00
Cargo.toml Implement our own small-integer optimization (#7584) 2023-09-25 15:13:21 +00:00