-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
bugSomething isn't workingSomething isn't workingconfigurationRelated to settings and configurationRelated to settings and configuration
Description
Description
Ruff 0.9.4 reports a nonexistent conflict between the settings of missing-required-import (I002) and unconventional-import-alias (ICN001) when I002 requires an import with the alias ICN001 specifies. That makes it impossible to require an import that has a conventional alias.
$ echo | ruff check --isolated --select I002,ICN001 --config 'lint.isort.required-imports = ["import numpy as np"]' - --fix
ruff failed
Cause: Required import specified in `lint.isort.required-imports` (I002) conflicts with the required import alias specified in either `lint.flake8-import-conventions.aliases` or `lint.flake8-import-conventions.extend-aliases` (ICN001):
- `numpy` -> `np`
Help: Remove the required import or alias from your configuration.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingconfigurationRelated to settings and configurationRelated to settings and configuration