@@ -121,7 +121,7 @@ def __hash__(self):
121121
122122 def normal (self , local_zone = "" ):
123123 """
124- Create a normalized version of the object for comparison in sorting or determining equavalence .
124+ Create a normalized version of the object for comparison in sorting or determining equivalence .
125125
126126 Args:
127127 local_zone: the name of the home zone, if any, in which client user directly authenticates.
@@ -204,27 +204,31 @@ def __repr__(self):
204204
205205class iRODSAccess (_iRODSAccess_base , metaclass = _Access_LookupMeta ):
206206 """
207- This class represents an ACL in iRODS and functions as a data container
208- to convey information to the iRODS server (in the `set` call) and back again to the client
209- again (in the `get` call).
207+ Represents an ACL in iRODS.
208+
209+ An instance of this class functions as a data container to convey information to the iRODS
210+ server (in the `set` call) and back again to the client again (in the `get` call).
210211 """
211212
212- def __init__ (self , access_name , path , user_name = "" , user_zone = "" , user_type = None ):
213+ def __init__ (self , access_name , path , user_name = "" , user_zone = "" , user_type = None ): # noqa: D107
213214 self .codes = self .__class__ .codes
214215 self .strings = self .__class__ .strings
215216 super ().__init__ (access_name , path , user_name , user_zone , user_type )
216217
217218
218219class ACLOperation (iRODSAccess ):
219220 """
220- Similar to its base class iRODSAccess, this class represents an ACL to be set on an object.
221- but this class is the counterpart used for the atomic ACLs api. It differs from its base
222- class in that it has no field to store a logical object path. (For an atomic API call, i
223- here is always a single logical path to which all operations apply, meaning that it is
224- appropriate to conveyed that in a location separate from the operations themselves.)
225- """
221+ Represents an operation to be performed in iRODS' atomic ACL api.
222+
223+ Similar to its base class, iRODSAccess, this class names an ACL to be set on an object.
224+ It differs, however, in that it forgoes option to store a logical object path. (In the atomic
225+ API call, there is always a single logical path to which all such operations apply, thus
226+ it is appropriate that the path parameter is in a location separate from the operations.)
227+ """ # noqa: D400
226228
227- def __init__ (self , access_name : str , user_name : str = "" , user_zone : str = "" ):
229+ # ruff: noqa: D105 on
230+
231+ def __init__ (self , access_name : str , user_name : str = "" , user_zone : str = "" ): # noqa: D107
228232 super ().__init__ (
229233 access_name = access_name ,
230234 path = "" ,
@@ -244,6 +248,7 @@ def __eq__(self, other):
244248 )
245249
246250 def __hash__ (self ):
251+
247252 # Hash in a way consistent with an iRODSAccess having path "".
248253 return hash ((
249254 self .access_name ,
@@ -266,6 +271,8 @@ def __lt__(self, other):
266271 def __repr__ (self ):
267272 return f"<ACLOperation { self .access_name } { self .user_name } { self .user_zone } >"
268273
274+ # ruff: noqa: D105 off
275+
269276
270277(
271278 _synonym_mapping := {
@@ -283,6 +290,9 @@ def __repr__(self):
283290canonical_permissions = {k : v for k , v in all_permissions .items () if ' ' not in k and k not in ('read' , 'write' )}
284291
285292
293+ # ruff: noqa: RUF012 N801 SLF001 on
294+
295+
286296class _deprecated :
287297 class _iRODSAccess_pre_4_3_0 (_iRODSAccess_base ):
288298 codes = collections .OrderedDict (
@@ -294,7 +304,8 @@ class _iRODSAccess_pre_4_3_0(_iRODSAccess_base):
294304
295305 def __init__ (self , * args , ** kwargs ):
296306 warnings .warn (
297- "_iRODSAccess_pre_4_3_0 is deprecated and will be removed in a future version. Use iRODSAccess instead." ,
307+ "_iRODSAccess_pre_4_3_0 is deprecated and will be removed in "
308+ "a future version. Use iRODSAccess instead." ,
298309 DeprecationWarning ,
299310 stacklevel = 2 ,
300311 )
@@ -309,3 +320,6 @@ def __getattr__(name):
309320 warnings .warn (f"{ name } is deprecated" , DeprecationWarning , stacklevel = 2 )
310321 return _deprecated_names [name ]
311322 raise AttributeError (f"module { __name__ !r} has no attribute { name !r} " )
323+
324+
325+ # ruff: noqa: RUF012 N801 SLF001 off
0 commit comments