From 3dcd3bc817397f41e43ed32c32d9eefe88d475bb Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Wed, 3 Jul 2024 16:07:47 -0600 Subject: [PATCH] Fix lint for grpc instrumentation --- .../tests/protobuf/test_server_pb2_grpc.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/instrumentation/opentelemetry-instrumentation-grpc/tests/protobuf/test_server_pb2_grpc.py b/instrumentation/opentelemetry-instrumentation-grpc/tests/protobuf/test_server_pb2_grpc.py index 003b68f4f1..3f848b8760 100644 --- a/instrumentation/opentelemetry-instrumentation-grpc/tests/protobuf/test_server_pb2_grpc.py +++ b/instrumentation/opentelemetry-instrumentation-grpc/tests/protobuf/test_server_pb2_grpc.py @@ -12,6 +12,7 @@ def __init__(self, channel): Args: channel: A grpc.Channel. """ + # pylint: disable=invalid-name self.SimpleMethod = channel.unary_unary( "/GRPCTestServer/SimpleMethod", request_serializer=test__server__pb2.Request.SerializeToString, @@ -37,6 +38,9 @@ def __init__(self, channel): class GRPCTestServerServicer: """Missing associated documentation comment in .proto file""" + # pylint: disable=invalid-name + # pylint: disable=no-self-use + def SimpleMethod(self, request, context): """Missing associated documentation comment in .proto file""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) @@ -62,7 +66,9 @@ def BidirectionalStreamingMethod(self, request_iterator, context): raise NotImplementedError("Method not implemented!") -def add_GRPCTestServerServicer_to_server(servicer, server): +def add_GRPCTestServerServicer_to_server( + servicer, server +): # pylint: disable=invalid-name rpc_method_handlers = { "SimpleMethod": grpc.unary_unary_rpc_method_handler( servicer.SimpleMethod, @@ -95,6 +101,7 @@ def add_GRPCTestServerServicer_to_server(servicer, server): class GRPCTestServer: """Missing associated documentation comment in .proto file""" + # pylint: disable=invalid-name @staticmethod def SimpleMethod( request,