ruff/crates/ruff/tests
Dylan 700e969c56
Config error only when `flake8-import-conventions` alias conflicts with `isort.required-imports` bound name (#15918)
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
2025-02-04 17:05:35 -06:00
..
snapshots Config error only when `flake8-import-conventions` alias conflicts with `isort.required-imports` bound name (#15918) 2025-02-04 17:05:35 -06:00
analyze_graph.rs Don't skip over imports and other nodes containing nested statements in import collector (#13521) 2024-09-26 11:57:05 +00:00
config.rs nit: docs for ignore & select (#15883) 2025-02-04 10:05:41 +01:00
format.rs Fix formatter warning message for `flake8-quotes` option (#15788) 2025-01-29 16:30:28 +05:30
integration_test.rs test: update snapshots with just whitespace changes 2025-01-15 13:37:52 -05:00
lint.rs Config error only when `flake8-import-conventions` alias conflicts with `isort.required-imports` bound name (#15918) 2025-02-04 17:05:35 -06:00
resolve_files.rs Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
show_settings.rs show-settings: Properly filter out backslashes on windows (#15612) 2025-01-20 10:57:21 +01:00
version.rs Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00