Skip to content

Commit

Permalink
delaying imports for onboard logic
Browse files Browse the repository at this point in the history
  • Loading branch information
brifordwylie committed Nov 9, 2024
1 parent 21bce51 commit 1eaac2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/test_no_sageworks_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# Print out the exeception
print("Finally: SageWorks API is not available")

print("Do Stuff")
print("Do Stuff")
1 change: 0 additions & 1 deletion src/sageworks/core/artifacts/artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from abc import ABC, abstractmethod
from datetime import datetime
import sys
import logging

# SageWorks Imports
Expand Down
6 changes: 3 additions & 3 deletions src/sageworks/repl/sageworks_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ def onboard():
onboard()

# Delayed SageWorks Imports
from sageworks.api.meta import Meta
from sageworks.api import CachedMeta
from sageworks.web_components.plugin_unit_test import PluginUnitTest
from sageworks.api.meta import Meta # noqa E402 (We need to delay these imports on purpose)
from sageworks.api import CachedMeta # noqa E402
from sageworks.web_components.plugin_unit_test import PluginUnitTest # noqa E402


# Set the log level to important
Expand Down

0 comments on commit 1eaac2c

Please sign in to comment.