Skip to content

Commit 5562d2e

Browse files
committed
Linting
1 parent 23f4186 commit 5562d2e

5 files changed

Lines changed: 7 additions & 6 deletions

File tree

ml_grid/model_classes/h2o_rulefit_classifier_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"""
77

88
import logging
9-
from typing import Dict, List, Optional, Union
9+
from typing import Any, Dict, List, Optional, Union
1010

1111
import pandas as pd # type: ignore
1212
from skopt.space import Categorical, Integer

ml_grid/model_classes/keras_classifier_class.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import math
2-
31
"""Keras Classifier.
42
53
This module contains the kerasClassifier_class, which is a configuration
64
class for a Keras Sequential model wrapped by KerasClassifier. It provides
75
parameter spaces for grid search and Bayesian optimization.
86
"""
97

8+
import math
109
from typing import Any, Dict, Optional
1110

1211
import numpy as np

ml_grid/model_classes/light_gbm_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class for the LightGBMClassifier. It provides parameter spaces for
66
"""
77

88
import logging
9-
from typing import Any, Dict, Optional, Union
9+
from typing import Any, Dict, List, Optional, Union
1010

1111
import pandas as pd
1212
from skopt.space import Categorical, Integer, Real

tests/test_project_score_save.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
if project_root not in sys.path:
1515
sys.path.insert(0, project_root)
1616

17-
from ml_grid.util.project_score_save import project_score_save_class
17+
from ml_grid.util.project_score_save import project_score_save_class # noqa: E402
1818

1919

2020
class TestProjectScoreSave(unittest.TestCase):

tests/test_tabpfn_classifier_class.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
sys.modules["tabpfn"] = mock_tabpfn_module
3434
sys.modules["tabpfn.constants"] = MagicMock()
3535

36-
from ml_grid.model_classes.tabpfn_classifier_class import TabPFNClassifierClass
36+
from ml_grid.model_classes.tabpfn_classifier_class import (
37+
TabPFNClassifierClass,
38+
) # noqa: E402
3739

3840

3941
class TestTabPFNClassifierClass(unittest.TestCase):

0 commit comments

Comments
 (0)