Skip to content

Commit

Permalink
refactor: ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
ForYourEyesOnlyyy committed Oct 15, 2024
1 parent e2e4694 commit 40a7426
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pipelines/training_data_pipeline.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
sys.path.append(

Check failure on line 1 in pipelines/training_data_pipeline.py

View workflow job for this annotation

GitHub Actions / format-check

Ruff (F821)

pipelines/training_data_pipeline.py:1:1: F821 Undefined name `sys`

Check failure on line 1 in pipelines/training_data_pipeline.py

View workflow job for this annotation

GitHub Actions / format-check

Ruff (F821)

pipelines/training_data_pipeline.py:1:1: F821 Undefined name `sys`
"/Users/maxmartyshov/Desktop/IU/year3/PMDL/Sentiment_Analysis_for_Financial_News/src"
)

import data

Check failure on line 5 in pipelines/training_data_pipeline.py

View workflow job for this annotation

GitHub Actions / format-check

Ruff (E402)

pipelines/training_data_pipeline.py:5:1: E402 Module level import not at top of file

Check failure on line 5 in pipelines/training_data_pipeline.py

View workflow job for this annotation

GitHub Actions / format-check

Ruff (E402)

pipelines/training_data_pipeline.py:5:1: E402 Module level import not at top of file

from zenml.steps import step

Check failure on line 7 in pipelines/training_data_pipeline.py

View workflow job for this annotation

GitHub Actions / format-check

Ruff (E402)

pipelines/training_data_pipeline.py:7:1: E402 Module level import not at top of file

Check failure on line 7 in pipelines/training_data_pipeline.py

View workflow job for this annotation

GitHub Actions / format-check

Ruff (E402)

pipelines/training_data_pipeline.py:7:1: E402 Module level import not at top of file
from zenml.pipelines import pipeline

Check failure on line 8 in pipelines/training_data_pipeline.py

View workflow job for this annotation

GitHub Actions / format-check

Ruff (E402)

pipelines/training_data_pipeline.py:8:1: E402 Module level import not at top of file

Check failure on line 8 in pipelines/training_data_pipeline.py

View workflow job for this annotation

GitHub Actions / format-check

Ruff (E402)

pipelines/training_data_pipeline.py:8:1: E402 Module level import not at top of file

import pandas as pd

Check failure on line 10 in pipelines/training_data_pipeline.py

View workflow job for this annotation

GitHub Actions / format-check

Ruff (E402)

pipelines/training_data_pipeline.py:10:1: E402 Module level import not at top of file

Check failure on line 10 in pipelines/training_data_pipeline.py

View workflow job for this annotation

GitHub Actions / format-check

Ruff (E402)

pipelines/training_data_pipeline.py:10:1: E402 Module level import not at top of file

import sys

Check failure on line 12 in pipelines/training_data_pipeline.py

View workflow job for this annotation

GitHub Actions / format-check

Ruff (E402)

pipelines/training_data_pipeline.py:12:1: E402 Module level import not at top of file

Check failure on line 12 in pipelines/training_data_pipeline.py

View workflow job for this annotation

GitHub Actions / format-check

Ruff (F401)

pipelines/training_data_pipeline.py:12:8: F401 `sys` imported but unused

Check failure on line 12 in pipelines/training_data_pipeline.py

View workflow job for this annotation

GitHub Actions / format-check

Ruff (E402)

pipelines/training_data_pipeline.py:12:1: E402 Module level import not at top of file

Check failure on line 12 in pipelines/training_data_pipeline.py

View workflow job for this annotation

GitHub Actions / format-check

Ruff (F401)

pipelines/training_data_pipeline.py:12:8: F401 `sys` imported but unused

sys.path.append(
"/Users/maxmartyshov/Desktop/IU/year3/PMDL/Sentiment_Analysis_for_Financial_News/src"
)

import data


@step
def load() -> pd.DataFrame:
Expand Down

0 comments on commit 40a7426

Please sign in to comment.