Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logging.config not being detected by F401 #14127

Closed
michelkluger opened this issue Nov 6, 2024 · 1 comment
Closed

logging.config not being detected by F401 #14127

michelkluger opened this issue Nov 6, 2024 · 1 comment

Comments

@michelkluger
Copy link

michelkluger commented Nov 6, 2024

is this the expected behaviour? if yes, why?

❯ ruff check --select F example.py
example.py:3:18: F401 [*] `pandas` imported but unused
  |
1 | import logging
2 | import logging.config
3 | import pandas as pd
  |                  ^^ F401
4 |
5 | logger = logging.getLogger(__name__)
  |
  = help: Remove unused import: `pandas`

Found 1 error.
[*] 1 fixable with the `--fix` option.

ruff==0.7.2

@MichaReiser
Copy link
Member

This is a bug, see #60 and #13965

@MichaReiser MichaReiser closed this as not planned Won't fix, can't repro, duplicate, stale Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants