-
Notifications
You must be signed in to change notification settings - Fork 2k
ICN001 and N817 don't play with each other #12916
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingincompatibilityIncompatibility between different Ruff tools or rules (formatter, isort, linter)Incompatibility between different Ruff tools or rules (formatter, isort, linter)
Description
List of keywords searched
- ICN001
- N817
Minimal code snippets
test1.py
import xml.etree.ElementTree as Ettest2.py
import xml.etree.ElementTree as ETInvoked commands
ruff check test1.py test2.pyCurrent ruff settings
select = ["ICN001", "N817"]Current ruff version
ruff 0.6.0
Description
It seems like N817 wants me to import it as Et while ICN001 wants me to import it as ET. Perhaps it is ok that rules conflict in ruff. If so I guess this is not a bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingincompatibilityIncompatibility between different Ruff tools or rules (formatter, isort, linter)Incompatibility between different Ruff tools or rules (formatter, isort, linter)