pyproject.toml: add example for combine-as-imports

b44d612 was misleading (s/avoid/allow/)
This commit is contained in:
Cédric Deltheil 2023-12-11 13:50:27 +01:00 committed by Cédric Deltheil
parent 792a0fc3d9
commit c8d5faff9b

View file

@ -79,6 +79,10 @@ ignore = [
line-length = 120 line-length = 120
[tool.ruff.lint.isort] [tool.ruff.lint.isort]
# Allow this kind of import on a single line:
#
# from torch import device as Device, dtype as DType
#
combine-as-imports = true combine-as-imports = true
[tool.docformatter] [tool.docformatter]