mirror of https://github.com/astral-sh/ruff
Previously an error was emitted any time the configuration required both
an import of a module and an alias for that module. However, required
imports could themselves contain an alias, which may or may not agree
with the required alias.
To wit: requiring `import pandas as pd` does not conflict with the
`flake8-import-conventions.alias` config `{"pandas":"pd"}`.
This PR refines the check before throwing an error.
Closes #15911
|
||
|---|---|---|
| .. | ||
| snapshots | ||
| analyze_graph.rs | ||
| config.rs | ||
| format.rs | ||
| integration_test.rs | ||
| lint.rs | ||
| resolve_files.rs | ||
| show_settings.rs | ||
| version.rs | ||