Skip to content

Commit

Permalink
pyproject.toml: add example for combine-as-imports
Browse files Browse the repository at this point in the history
b44d612 was misleading (s/avoid/allow/)
  • Loading branch information
deltheil committed Dec 11, 2023
1 parent 792a0fc commit 9a8a64c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ ignore = [
line-length = 120

[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

[tool.docformatter]
Expand Down

0 comments on commit 9a8a64c

Please sign in to comment.