Skip to content

Commit e227ac2

Browse files
committed
fix: isort broke fragile __init__ imports
1 parent deaeb9c commit e227ac2

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ line_length = 88
5959
[tool.isort]
6060
profile = "black"
6161
multi_line_output = 3
62+
skip="__init__.py"
6263

6364
[tool.semantic_release]
6465
version_variable = [

src/proxima/__init__.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@
99
os.environ["PROXIMA_VERSION"] = __version__
1010
os.environ["PROXIMA_VC_KEY"] = f"{_semver.major}.{_semver.minor}"
1111

12+
# TODO: Fix fragile relative imports
13+
# This import order really matters!
14+
# isort is configured not to touch __init__ files
15+
# but this is fragile and should be fixed
16+
1217
from proxima.cli import main as cli
1318

14-
from .app import checks, core, exceptions, resolve
15-
from .app.link import ProxyLinker
19+
from .app import core
1620
from .celery import shared
21+
from .app import checks
22+
from .app import exceptions
23+
from .app import resolve
24+
from .app.link import ProxyLinker

0 commit comments

Comments
 (0)