[flake8-logging] Implement LOG001: direct-logger-instantiation (#7397)

## Summary

See: https://github.com/astral-sh/ruff/issues/7248.
This commit is contained in:
Charlie Marsh 2023-09-14 23:07:10 -04:00 committed by GitHub
parent 6163c99551
commit 450fb9b99a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 135 additions and 2 deletions

View file

@ -853,9 +853,11 @@ mod tests {
];
const PREVIEW_RULES: &[Rule] = &[
Rule::DirectLoggerInstantiation,
Rule::ManualDictComprehension,
Rule::TooManyPublicMethods,
Rule::SliceCopy,
Rule::TooManyPublicMethods,
Rule::TooManyPublicMethods,
Rule::UndocumentedWarn,
];