Skip to content

Commit 340d9cb

Browse files
committed
run black on all Python source code.
For future reference, the current "black --version" output for the black formatter used here was: python -m black, 25.1.0 (compiled: yes) Python (CPython) 3.12.4
1 parent 1435d46 commit 340d9cb

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

irods/helpers/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def __init__(self, *args, **kwargs):
2323
print("Aborting tests [ Got : %r ]" % self, file=sys.stderr)
2424
os.abort()
2525

26+
2627
class iRODS_Server_Too_Recent_For_Testing(StopTestsException):
2728
pass
2829

@@ -35,6 +36,7 @@ def _get_server_version_for_test(session, curtail_length):
3536

3637
# Create a connection for test, based on ~/.irods environment by default.
3738

39+
3840
def make_session(test_server_version=False, **kwargs):
3941
"""Connect to an iRODS server as determined by any client environment
4042
file present at a standard location, and by any keyword arguments given.

irods/test/data_obj_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def write_and_check_replica_on_parallel_connections(
294294
data_object_path,
295295
"a",
296296
finalize_on_close=False,
297-
**{kw.RESC_HIER_STR_KW: hier_str, kw.REPLICA_TOKEN_KW: replica_token}
297+
**{kw.RESC_HIER_STR_KW: hier_str, kw.REPLICA_TOKEN_KW: replica_token},
298298
)
299299
fd2.seek(4)
300300
fd2.write(b"s\n")
@@ -646,7 +646,7 @@ def test_compute_chksum(self):
646646
Data.put(
647647
f.name,
648648
dobj_path,
649-
**{kw.DEST_RESC_NAME_KW: R, kw.FORCE_FLAG_KW: "1"}
649+
**{kw.DEST_RESC_NAME_KW: R, kw.FORCE_FLAG_KW: "1"},
650650
)
651651
# compare checksums
652652
my_object = Data.get(dobj_path)
@@ -2092,7 +2092,7 @@ def test_data_open_on_leaf_is_disallowed__243(self):
20922092
self.sess.data_objects.open(
20932093
"{home}/disallowed_243".format(**locals()),
20942094
"w",
2095-
**{kw.RESC_NAME_KW: Leaf}
2095+
**{kw.RESC_NAME_KW: Leaf},
20962096
)
20972097

20982098
def test_data_open_on_named_resource__243(self):

irods/test/helpers.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
import threading
1818

1919
import irods.client_configuration as config
20-
from irods.helpers import (
21-
home_collection,
22-
make_session as _irods_helpers_make_session)
20+
from irods.helpers import home_collection, make_session as _irods_helpers_make_session
2321
from irods.message import iRODSMessage, IRODS_VERSION
2422
from irods.password_obfuscation import encode
2523
import irods.rule
@@ -164,11 +162,15 @@ def recast(k):
164162

165163

166164
def make_session(test_server_version=True, **kwargs):
167-
return _irods_helpers_make_session(test_server_version=test_server_version, **kwargs)
165+
return _irods_helpers_make_session(
166+
test_server_version=test_server_version, **kwargs
167+
)
168168

169169

170170
make_session.__doc__ = re.sub(
171-
r"(test_server_version\s*)=\s*\w+", r"\1 = True", _irods_helpers_make_session.__doc__
171+
r"(test_server_version\s*)=\s*\w+",
172+
r"\1 = True",
173+
_irods_helpers_make_session.__doc__,
172174
)
173175

174176

0 commit comments

Comments
 (0)