Skip to content

Commit e225763

Browse files
authored
refactor: add ruff rules for sorting imports (#138)
1 parent ed90ceb commit e225763

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

plugin/dev_environment/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
from more_itertools import first_true
77

88
from .impl import (
9-
VERSIONED_SUBLIME_TEXT_DEV_ENVIRONMENT_HANDLERS,
109
BlenderDevEnvironmentHandler,
1110
GdbDevEnvironmentHandler,
1211
SublimeTextDevEnvironmentHandler,
12+
VERSIONED_SUBLIME_TEXT_DEV_ENVIRONMENT_HANDLERS,
1313
)
1414
from .interfaces import BaseDevEnvironmentHandler
1515

plugin/dev_environment/impl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from .blender import BlenderDevEnvironmentHandler
44
from .gdb import GdbDevEnvironmentHandler
5-
from .sublime_text import VERSIONED_SUBLIME_TEXT_DEV_ENVIRONMENT_HANDLERS, SublimeTextDevEnvironmentHandler
5+
from .sublime_text import SublimeTextDevEnvironmentHandler, VERSIONED_SUBLIME_TEXT_DEV_ENVIRONMENT_HANDLERS
66

77
__all__ = (
88
"BlenderDevEnvironmentHandler",

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,9 @@ ignore = ["E203"]
7171

7272
[tool.ruff.lint.per-file-ignores]
7373
"boot.py" = ["E402"]
74+
75+
[tool.ruff.lint.isort]
76+
case-sensitive = true
77+
combine-as-imports = true
78+
order-by-type = false
79+
required-imports = ["from __future__ import annotations"]

0 commit comments

Comments
 (0)