8000 Black reformatting · Christian06810/python-sasctl@42d7537 · GitHub
[go: up one dir, main page]

Skip to content

Commit 42d7537

Browse files
committed
Black reformatting
1 parent 3581089 commit 42d7537

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

src/sasctl/pzmm/gitIntegration.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,24 @@
1515
from git import Repo
1616
except ImportError:
1717
git = None
18-
18+
19+
1920
def checkGitStatus():
20-
'''Check to see if GitPython has been installed and if a valid git executable
21-
exists on the target system. If one of those two conditions is not met, then
21+
"""Check to see if GitPython has been installed and if a valid git executable
22+
exists on the target system. If one of those two conditions is not met, then
2223
a RunTime error is raised.
2324
2425
Raises
2526
------
2627
RuntimeError
2728
Raised if an invalid git setup for git integration is detected.
28-
'''
29+
"""
2930
if git is None:
30-
raise RuntimeError("The 'GitPython' package and a valid git executable is required" +
31-
" for use of the git integration functions.")
31+
raise RuntimeError(
32+
"The 'GitPython' package and a valid git executable is required"
33+
+ " for use of the git integration functions."
34+
)
35+
3236

3337
def getZippedModel(model, gPath, project=None):
3438
"""Retrieve a zipped file containing all of the model contents or a specified
@@ -298,7 +302,7 @@ def gitRepoPush(cls, gPath, commitMessage, remote="origin", branch="main"):
298302
Branch name for the target pull branch from remote, by default 'main'
299303
"""
300304
checkGitStatus()
301-
305+
302306
repo = Repo(gPath)
303307
repo.git.add(all=True)
304308
repo.index.commit(commitMessage)
@@ -319,7 +323,7 @@ def gitRepoPull(cls, gPath, remote="origin", branch="main"):
319323
Branch name for the target pull branch from remote, by default 'main'
320324
"""
321325
checkGitStatus()
322-
326+
323327
repo = git.Git(gPath)
324328
repo.pull(remote, branch)
325329

src/sasctl/pzmm/writeJSONFiles.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from sklearn import metrics
1212
import numpy as np
1313
from scipy.stats import kendalltau, gamma
14+
1415
# %%
1516
class JSONFiles:
1617
def writeVarJSON(self, inputData, isInput=True, jPath=Path.cwd()):

src/sasctl/pzmm/zipModel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def zipFiles(fileDir, modelPrefix, isViya4=False):
2626
isViya4 : boolean, optional
2727
Boolean to indicate difference in logic between SAS Viya 3.5 and SAS Viya 4.
2828
For Viya 3.5 models, ignore score code that is already in place in the file
29-
directory provided. Default value is False.
29+
directory provided. Default value is False.
3030
3131
Yields
3232
---------------

0 commit comments

Comments
 (0)
0