Skip to content

ICN001 and N817 don't play with each other #12916

@ember91

Description

@ember91

List of keywords searched

  • ICN001
  • N817

Minimal code snippets

test1.py

import xml.etree.ElementTree as Et

test2.py

import xml.etree.ElementTree as ET

Invoked commands

ruff check test1.py test2.py

Current 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingincompatibilityIncompatibility between different Ruff tools or rules (formatter, isort, linter)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions