Skip to content

Commit 7af8479

Browse files
committed
linter
1 parent 0429929 commit 7af8479

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

packages/service-library/src/servicelib/logging_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ def format(self, record) -> str:
7878
if hasattr(record, "file_name_override"):
7979
record.filename = record.file_name_override
8080

81+
# pylint: disable=no-member
8182
optional_keys = LogExtra.__optional_keys__ | frozenset(
8283
["otelTraceID", "otelSpanID"]
83-
) # pylint: disable=no-member
84+
)
8485
for name in optional_keys:
8586
if not hasattr(record, name):
8687
setattr(record, name, None)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from ..._errors import RPCInterfaceError
22

33

4-
class BaseRpcError(RPCInterfaceError):
4+
class BaseRpcError(RPCInterfaceError): # pylint: disable=too-many-ancestors
55
pass
66

77

8-
class ComputationalTaskMissingError(BaseRpcError):
8+
class ComputationalTaskMissingError(BaseRpcError): # pylint: disable=too-many-ancestors
99
msg_template = "Computational run not found for project {project_id}"
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
from ..._errors import RPCInterfaceError
22

33

4-
class ProjectNotFoundRpcError(RPCInterfaceError): ...
4+
class ProjectNotFoundRpcError( # pylint: disable=too-many-ancestors
5+
RPCInterfaceError
6+
): ...
57

68

7-
class ProjectForbiddenRpcError(RPCInterfaceError): ...
9+
class ProjectForbiddenRpcError( # pylint: disable=too-many-ancestors
10+
RPCInterfaceError
11+
): ...

0 commit comments

Comments
 (0)