Skip to content

Commit 4a64dc5

Browse files
committed
Black reformatting and keep pandas version below v2 for tox until further testing is completed
1 parent 83fe479 commit 4a64dc5

File tree

7 files changed

+25
-17
lines changed

7 files changed

+25
-17
lines changed

src/sasctl/__init__.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,19 @@
2424
import logging
2525
import warnings
2626

27-
from .core import (HTTPError, RestObj, Session, current_session, delete, get,
28-
get_link, platform_version, post, put, request_link)
27+
from .core import (
28+
HTTPError,
29+
RestObj,
30+
Session,
31+
current_session,
32+
delete,
33+
get,
34+
get_link,
35+
platform_version,
36+
post,
37+
put,
38+
request_link,
39+
)
2940
from .tasks import publish_model, register_model, update_model_performance
3041

3142
# Ensure deprecation warnings are shown to users.

src/sasctl/services.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
from ._services.data_sources import DataSources as data_sources
1313
from ._services.files import Files as files
1414
from ._services.folders import Folders as folders
15-
from ._services.microanalytic_score import \
16-
MicroAnalyticScore as microanalytic_score
15+
from ._services.microanalytic_score import MicroAnalyticScore as microanalytic_score
1716
from ._services.model_management import ModelManagement as model_management
1817
from ._services.model_publish import ModelPublish as model_publish
1918
from ._services.model_repository import ModelRepository as model_repository
@@ -22,8 +21,6 @@
2221
from ._services.report_images import ReportImages as report_images
2322
from ._services.reports import Reports as reports
2423
from ._services.saslogon import SASLogon as saslogon
25-
from ._services.sentiment_analysis import \
26-
SentimentAnalysis as sentiment_analysis
27-
from ._services.text_categorization import \
28-
TextCategorization as text_categorization
24+
from ._services.sentiment_analysis import SentimentAnalysis as sentiment_analysis
25+
from ._services.text_categorization import TextCategorization as text_categorization
2926
from ._services.text_parsing import TextParsing as text_parsing

src/sasctl/utils/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
55
# SPDX-License-Identifier: Apache-2.0
66

7-
from .astore import (create_package, create_package_from_astore,
8-
create_package_from_datastep)
7+
from .astore import (
8+
create_package,
9+
create_package_from_astore,
10+
create_package_from_datastep,
11+
)
912
from .model_migration import convert_model_zip

tests/unit/test_decorators.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
import pytest
88

9-
from sasctl.utils.decorators import (ExperimentalWarning, deprecated,
10-
experimental)
9+
from sasctl.utils.decorators import ExperimentalWarning, deprecated, experimental
1110

1211

1312
def test_deprecated():

tests/unit/test_pyml2ds.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ def test_lgb2ds():
5858
IN_PKL = os.path.join(DATA_PATH, "lgb.pkl")
5959
EXPECTED_SAS = os.path.join(DATA_PATH, "lgb_datastep")
6060

61-
from sasctl.utils.pyml2ds.connectors.ensembles.lgb import \
62-
LightgbmTreeParser
61+
from sasctl.utils.pyml2ds.connectors.ensembles.lgb import LightgbmTreeParser
6362

6463
# Expected output contains integer values instead of floats.
6564
# Convert to ensure match.

tests/unit/test_tasks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
def test_sklearn_metadata():
1616
pytest.importorskip("sklearn")
1717

18-
from sklearn.ensemble import (GradientBoostingClassifier,
19-
RandomForestClassifier)
18+
from sklearn.ensemble import GradientBoostingClassifier, RandomForestClassifier
2019
from sklearn.linear_model import LinearRegression, LogisticRegression
2120
from sklearn.svm import SVC
2221
from sklearn.tree import DecisionTreeClassifier

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ deps =
4646
tests: betamax >= 0.8.1
4747
tests: betamax_serializers >= 0.2.0
4848
tests: scikit-learn
49-
tests: pandas
49+
tests: pandas == 1.5.3
5050
tests: cython # required to install pandas from source
5151
tests: swat >= 1.8
5252
tests: kerberos ; platform_system != "Windows" and platform_system != "Darwin"

0 commit comments

Comments
 (0)