SIENTIAPDE-1241: Linted files
This commit is contained in:
@@ -82,8 +82,8 @@ def upload_to_minio(source_path: Path) -> str:
|
|||||||
object_name = f'test-model-data-{timestamp}.csv'
|
object_name = f'test-model-data-{timestamp}.csv'
|
||||||
target_uri = f'{MINIO_ALIAS}/{MINIO_BUCKET}/{object_name}'
|
target_uri = f'{MINIO_ALIAS}/{MINIO_BUCKET}/{object_name}'
|
||||||
|
|
||||||
subprocess.run(
|
subprocess.run( # noqa: S603
|
||||||
['mc', 'cp', str(source_path), target_uri],
|
['mc', 'cp', str(source_path), target_uri], # noqa: S607
|
||||||
check=True,
|
check=True,
|
||||||
)
|
)
|
||||||
return object_name
|
return object_name
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"""Unit tests for TrainingRepository."""
|
"""Unit tests for TrainingRepository."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock, Mock, patch
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
@@ -236,9 +236,10 @@ class TestInitScalerDict:
|
|||||||
|
|
||||||
def test_init_scaler_dict_with_minmax_scaler(self, training_repo, sample_params):
|
def test_init_scaler_dict_with_minmax_scaler(self, training_repo, sample_params):
|
||||||
"""Test scaler dict initialization with MinMaxScaler."""
|
"""Test scaler dict initialization with MinMaxScaler."""
|
||||||
from model_manager.sientia.models import DataPreprocessor
|
|
||||||
from sientia_do.operations.normalization import MinMaxScaler
|
from sientia_do.operations.normalization import MinMaxScaler
|
||||||
|
|
||||||
|
from model_manager.sientia.models import DataPreprocessor
|
||||||
|
|
||||||
sample_params.use_scaler = True
|
sample_params.use_scaler = True
|
||||||
|
|
||||||
# Create mock MinMaxScaler
|
# Create mock MinMaxScaler
|
||||||
@@ -268,9 +269,10 @@ class TestInitScalerDict:
|
|||||||
|
|
||||||
def test_init_scaler_dict_with_z_scaler(self, training_repo, sample_params):
|
def test_init_scaler_dict_with_z_scaler(self, training_repo, sample_params):
|
||||||
"""Test scaler dict initialization with Z_Scaler."""
|
"""Test scaler dict initialization with Z_Scaler."""
|
||||||
from model_manager.sientia.models import DataPreprocessor
|
|
||||||
from sientia_do.operations.normalization import Z_Scaler
|
from sientia_do.operations.normalization import Z_Scaler
|
||||||
|
|
||||||
|
from model_manager.sientia.models import DataPreprocessor
|
||||||
|
|
||||||
sample_params.use_scaler = True
|
sample_params.use_scaler = True
|
||||||
|
|
||||||
# Create mock Z_Scaler
|
# Create mock Z_Scaler
|
||||||
|
|||||||
Reference in New Issue
Block a user