Skip to content

Commit 0ba525f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9d815b4 commit 0ba525f

3 files changed

Lines changed: 6 additions & 13 deletions

File tree

monailabel/_version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, env=
9797
print(f"unable to find command, tried {commands}")
9898
return None, None
9999
stdout = p.communicate()[0].strip()
100-
if sys.version_info[0] >= 3:
101-
stdout = stdout.decode()
100+
stdout = stdout.decode()
102101
if p.returncode != 0:
103102
if verbose:
104103
print("unable to run %s (error)" % dispcmd)

plugins/slicer/MONAILabel/MONAILabel.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,13 @@ def __init__(self, parent):
4343
self.parent.categories = [translate("qSlicerAbstractCoreModule", "Active Learning")]
4444
self.parent.dependencies = []
4545
self.parent.contributors = ["NVIDIA, KCL"]
46-
self.parent.helpText = _(
47-
"""
46+
self.parent.helpText = _("""
4847
Active Learning solution.
4948
See more information in <a href="https://github.com/Project-MONAI/MONAILabel">module documentation</a>.
50-
"""
51-
)
52-
self.parent.acknowledgementText = _(
53-
"""
49+
""")
50+
self.parent.acknowledgementText = _("""
5451
Developed by NVIDIA, KCL
55-
"""
56-
)
52+
""")
5753

5854
# Additional initialization step after application startup is complete
5955
slicer.app.connect("startupCompleted()", self.initializeAfterStartup)

versioneer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,7 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, env=
410410
return stdout, p.returncode
411411

412412

413-
LONG_VERSION_PY[
414-
"git"
415-
] = r'''
413+
LONG_VERSION_PY["git"] = r'''
416414
# This file helps to compute a version number in source trees obtained from
417415
# git-archive tarball (such as those provided by githubs download-from-tag
418416
# feature). Distribution tarballs (built by setup.py sdist) and build

0 commit comments

Comments
 (0)