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

Flake8 E402 rule causing problems on code #16

Open
riserrad opened this issue Jul 18, 2019 · 0 comments
Open

Flake8 E402 rule causing problems on code #16

riserrad opened this issue Jul 18, 2019 · 0 comments

Comments

@riserrad
Copy link
Contributor

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant