From 4e41ddec0f577291435261eb63c5a3e4381d7ab0 Mon Sep 17 00:00:00 2001 From: Ahmed AlSahaf Date: Tue, 12 Dec 2023 11:38:19 +0300 Subject: [PATCH] Fix style --- cognite/extractorutils/configtools/elements.py | 4 ++-- cognite/extractorutils/metrics.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cognite/extractorutils/configtools/elements.py b/cognite/extractorutils/configtools/elements.py index 594225c5..945290d0 100644 --- a/cognite/extractorutils/configtools/elements.py +++ b/cognite/extractorutils/configtools/elements.py @@ -24,11 +24,11 @@ from urllib.parse import urljoin import yaml +from prometheus_client import REGISTRY, start_http_server + from cognite.client import ClientConfig, CogniteClient from cognite.client.credentials import CredentialProvider, OAuthClientCertificate, OAuthClientCredentials from cognite.client.data_classes import Asset, DataSet, ExtractionPipeline -from prometheus_client import REGISTRY, start_http_server - from cognite.extractorutils.configtools._util import _load_certificate_data from cognite.extractorutils.exceptions import InvalidConfigError from cognite.extractorutils.metrics import AbstractMetricsPusher, CognitePusher, PrometheusPusher diff --git a/cognite/extractorutils/metrics.py b/cognite/extractorutils/metrics.py index d8ace1d2..f99319b5 100644 --- a/cognite/extractorutils/metrics.py +++ b/cognite/extractorutils/metrics.py @@ -48,13 +48,13 @@ def __init__(self): import arrow import psutil -from cognite.client import CogniteClient -from cognite.client.data_classes import Asset, Datapoints, DatapointsArray, TimeSeries -from cognite.client.exceptions import CogniteDuplicatedError from prometheus_client import Gauge, Info, Metric from prometheus_client.core import REGISTRY from prometheus_client.exposition import basic_auth_handler, delete_from_gateway, pushadd_to_gateway +from cognite.client import CogniteClient +from cognite.client.data_classes import Asset, Datapoints, DatapointsArray, TimeSeries +from cognite.client.exceptions import CogniteDuplicatedError from cognite.extractorutils.configtools.elements import EitherIdConfig from .util import ensure_time_series