Skip to content

Commit

Permalink
fix(pylint): ignore import-outside-toplevel for prefect
Browse files Browse the repository at this point in the history
  • Loading branch information
kreczko committed Feb 22, 2024
1 parent af23cfe commit 79a3a39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fasthep_flow/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Workflow:
] # this should be prefect.Task, but that's not working with pydantic v2 for now

def __init__(self, config: FlowConfig) -> None:
from prefect import Task
from prefect import Task # pylint: disable=import-outside-toplevel

stages = config.stages
self.tasks = []
Expand All @@ -32,7 +32,7 @@ def __call__(self) -> None:

def run(self) -> None:
"""Function to execute the workflow. Wraps __call__ to convert the workflow into a Prefect flow."""
from prefect import Flow
from prefect import Flow # pylint: disable=import-outside-toplevel

f = Flow(
self.__call__,
Expand Down

0 comments on commit 79a3a39

Please sign in to comment.