Skip to content

Commit

Permalink
fix: isort broke fragile __init__ imports
Browse files Browse the repository at this point in the history
  • Loading branch information
in03 committed Feb 9, 2023
1 parent deaeb9c commit e227ac2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ line_length = 88
[tool.isort]
profile = "black"
multi_line_output = 3
skip="__init__.py"

[tool.semantic_release]
version_variable = [
Expand Down
12 changes: 10 additions & 2 deletions src/proxima/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,16 @@
os.environ["PROXIMA_VERSION"] = __version__
os.environ["PROXIMA_VC_KEY"] = f"{_semver.major}.{_semver.minor}"

# TODO: Fix fragile relative imports
# This import order really matters!
# isort is configured not to touch __init__ files
# but this is fragile and should be fixed

from proxima.cli import main as cli

from .app import checks, core, exceptions, resolve
from .app.link import ProxyLinker
from .app import core
from .celery import shared
from .app import checks
from .app import exceptions
from .app import resolve
from .app.link import ProxyLinker

0 comments on commit e227ac2

Please sign in to comment.