Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Flake8 E402 rule causing problems on code #16

@riserrad

Description

@riserrad

Describe the bug

sys.path.append should be before importing the custom modules. Otherwise, it won't be able to load them because of their location.

This is typically suggested by linters. Here's the flake8 rule that causes this problem.

Please make sure to disable this rule when running flake8

from attach_compute import get_compute
from workspace import get_workspace
import sys
import os
import time
from azureml.pipeline.core import Pipeline
from azureml.pipeline.steps import DatabricksStep
sys.path.append(os.path.abspath("./aml_service/experiment"))

To Reproduce
Steps to reproduce the behavior:

  • Run the build-train.yml pipeline

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions