From 4dd654f78473559c0abcd7144e742892d791a86d Mon Sep 17 00:00:00 2001 From: John Bley Date: Tue, 2 Jul 2024 09:09:51 -0400 Subject: [PATCH] more linting --- tests/unit/test_distro.py | 22 +++++++++++----------- tests/unit/test_propagation.py | 4 +--- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/tests/unit/test_distro.py b/tests/unit/test_distro.py index 62b926cf..d456e783 100644 --- a/tests/unit/test_distro.py +++ b/tests/unit/test_distro.py @@ -1,20 +1,20 @@ -# Copyright Splunk Inc. +# Copyright Splunk Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# http://www.apache.org/licenses/LICENSE-2.0 # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os from opentelemetry.instrumentation.propagators import get_global_response_propagator -from opentelemetry.sdk.trace import SpanLimits, TracerProvider +from opentelemetry.sdk.trace import SpanLimits from splunk_otel.distro import _SplunkDistro from splunk_otel.propagators import _ServerTimingResponsePropagator diff --git a/tests/unit/test_propagation.py b/tests/unit/test_propagation.py index 459d820a..7283559e 100644 --- a/tests/unit/test_propagation.py +++ b/tests/unit/test_propagation.py @@ -12,11 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -import os -from unittest import TestCase, mock +from unittest import TestCase from opentelemetry import trace -from opentelemetry.instrumentation.propagators import get_global_response_propagator from splunk_otel.propagators import _ServerTimingResponsePropagator