In ruff 0.6.1, this file:
from xml.etree import ElementTree as ET
_ = ET
causes N817 to trigger an error with the default ruff settings,even though the default value of lint.flake8-import-conventions contains that mapping and it's supposed to be ignored according to the docs.
$ ruff check --fix --unsafe-fixes --select ICN001,N817 sample.py
sample.py:2:23: N817 CamelCase `ElementTree` imported as acronym `ET`
|
2 | from xml.etree import ElementTree as ET
| ^^^^^^^^^^^^^^^^^ N817
3 |
4 | _ = ET
|
Found 1 error.
import xml.etree.ElementTree as ET
_ = ET
failed in 0.6.0 but is fixed in 0.6.1
In ruff 0.6.1, this file:
causes N817 to trigger an error with the default ruff settings,even though the default value of
lint.flake8-import-conventionscontains that mapping and it's supposed to be ignored according to the docs.failed in 0.6.0 but is fixed in 0.6.1