Skip to content

Commit 6dd30a7

Browse files
committed
Actually applying the black reformatting
1 parent 09487b3 commit 6dd30a7

File tree

6 files changed

+28
-16
lines changed

6 files changed

+28
-16
lines changed

src/sasctl/_services/cas_management.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def check_keys(valid_keys: list, input_keys: list, parameters: str):
1818
"""Compares the input_keys against the valid_keys
1919
to see if they are allowed to be passed
2020
as parameters in the request.
21-
21+
2222
Parameters
2323
----------
2424
valid_keys: list
@@ -28,7 +28,7 @@ def check_keys(valid_keys: list, input_keys: list, parameters: str):
2828
parameters: str
2929
String describing the type of parameters
3030
that are being tested.
31-
31+
3232
Returns
3333
-------
3434
raises ValueError if input_keys are not valid
@@ -44,7 +44,7 @@ def check_required_key(
4444
):
4545
"""Check whether the required parameters
4646
are in the list of input_key.
47-
47+
4848
Parameters
4949
----------
5050
required_key: str or list
@@ -327,9 +327,9 @@ def upload_file(
327327
detail : dict, optional
328328
Additional body parameters. Allowed parameters are
329329
'sessionId', 'variables', 'label', 'scope', 'replace', 'encoding',
330-
'allowTruncation', 'allowEmbeddedNewLines', 'delimiter',
330+
'allowTruncation', 'allowEmbeddedNewLines', 'delimiter',
331331
'varchars', 'scanRows', 'threadCount', 'stripBlanks', 'sheetName',
332-
'password', 'decryptionKey', 'stringLengthMultiplier',
332+
'password', 'decryptionKey', 'stringLengthMultiplier',
333333
'varcharConversionThreshold'.
334334
335335
Returns
@@ -617,15 +617,15 @@ def del_table(
617617
):
618618
"""Deletes a table from Caslib source. Note that is not an unload.
619619
This operation physically removes the source table (if the source is writable).
620-
For path-based caslibs, this physically removes the file.
621-
620+
For path-based caslibs, this physically removes the file.
621+
622622
Parameters
623623
----------
624624
name : str
625625
Name of the table.
626626
query_params : dict
627627
Query parameters.
628-
The allowed query parameters are `sessionId`,
628+
The allowed query parameters are `sessionId`,
629629
`sourceTableName`, `quiet`, `removeAcs`.
630630
Note that the last three are required.
631631
caslib : str

src/sasctl/_services/model_publish.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ def publish_model(cls, model, destination, name=None, code=None, notes=None):
124124
code = cls.get(code_link["href"])
125125

126126
request = dict(
127-
name=name or model.get("name"), notes=notes, destinationName=destination,
127+
name=name or model.get("name"),
128+
notes=notes,
129+
destinationName=destination,
128130
)
129131

130132
model_contents = {

src/sasctl/_services/model_repository.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,10 @@ def create_model(
336336
)
337337
model["scoreCodeType"] = score_code_type or model.get("scoreCodeType")
338338
model["trainTable"] = training_table or model.get("trainTable")
339-
model["classificationEventProbabilityVariableName"] = (
340-
event_prob_variable
341-
or model.get("classificationEventProbabilityVariableName")
339+
model[
340+
"classificationEventProbabilityVariableName"
341+
] = event_prob_variable or model.get(
342+
"classificationEventProbabilityVariableName"
342343
)
343344
model["classificationTargetEventValue"] = event_target_value or model.get(
344345
"classificationTargetEventValue"

src/sasctl/pzmm/gitIntegration.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,10 @@ def model_exists(project, name, force):
176176
class GitIntegrate:
177177
@classmethod
178178
def pullViyaModel(
179-
cls, model, gPath, project=None,
179+
cls,
180+
model,
181+
gPath,
182+
project=None,
180183
):
181184
"""Send an API request in order to pull a model from a project in
182185
SAS Model Manager in a zipped format. The contents of the zip file

src/sasctl/pzmm/writeScoreCode.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,10 @@ def convertMAStoCAS(MASCode, modelId):
679679
if (x != "double" and x != "in_out" and x != "varchar(100)")
680680
]
681681
)
682-
endBlock = "method run();\n set SASEP.IN;\n score({});\nend;\nenddata;".format(
683-
inputString
682+
endBlock = (
683+
"method run();\n set SASEP.IN;\n score({});\nend;\nenddata;".format(
684+
inputString
685+
)
684686
)
685687
replaceStrings = {
686688
"package pythonScore / overwrite=yes;": "data sasep.out;",

src/sasctl/utils/pymas/ds2.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,11 @@ def __init__(
328328
@deprecated(version="1.5", removed_in="1.6")
329329
class DS2ScoreMethod(DS2BaseMethod):
330330
def __init__(
331-
self, variables, return_code=True, return_message=True, target="wrapper",
331+
self,
332+
variables,
333+
return_code=True,
334+
return_message=True,
335+
target="wrapper",
332336
):
333337
self._target = target
334338

0 commit comments

Comments
 (0)