Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Future Outlier <[email protected]>
  • Loading branch information
Future Outlier committed Nov 30, 2023
1 parent 829cd34 commit b33e1ba
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@

import flytekit
from flytekit.core.context_manager import FlyteContextManager
import flytekit

from .config import VscodeConfig
from .constants import (
DOWNLOAD_DIR,
EXECUTABLE_NAME,
HEARTBEAT_CHECK_SECONDS,
HEARTBEAT_PATH,
MAX_IDLE_SECONDS,
INTERACTIVE_DEBUGGING_FILE_NAME,
MAX_IDLE_SECONDS,
)


Expand Down Expand Up @@ -170,7 +170,10 @@ def prepare_interactive_python(task_function):
context_working_dir = FlyteContextManager.current_context().execution_state.working_dir

# Copy the user's Python file to the working directory.
shutil.copy(f"{task_function.__module__}.py", os.path.join(context_working_dir, f"{task_function.__module__}.py"))
shutil.copy(

Check warning on line 173 in plugins/flytekit-flyin/flytekitplugins/flyin/vscode_lib/decorator.py

View check run for this annotation

Codecov / codecov/patch

plugins/flytekit-flyin/flytekitplugins/flyin/vscode_lib/decorator.py#L173

Added line #L173 was not covered by tests
f"{task_function.__module__}.py",
os.path.join(context_working_dir, f"{task_function.__module__}.py"),
)

# Generate a Python script
task_module_name, task_name = task_function.__module__, task_function.__name__
Expand Down

0 comments on commit b33e1ba

Please sign in to comment.