Skip to content

Commit

Permalink
Add Applicability to flake8_logging_format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
evanrittenhouse committed Jun 15, 2023
1 parent 107a295 commit 3e19d22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ pub(crate) fn logging_call(
{
let mut diagnostic = Diagnostic::new(LoggingWarn, level_call_range);
if checker.patch(diagnostic.kind.rule()) {
#[allow(deprecated)]
diagnostic.set_fix(Fix::unspecified(Edit::range_replacement(
diagnostic.set_fix(Fix::automatic(Edit::range_replacement(
"warning".to_string(),
level_call_range,
)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ G010.py:4:9: G010 [*] Logging statement uses `warn` instead of `warning`
|
= help: Convert to `warn`

Suggested fix
Fix
1 1 | import logging
2 2 | from distutils import log
3 3 |
Expand Down

0 comments on commit 3e19d22

Please sign in to comment.