From e40878aedc54a7130c76f61f4dee036dde98d542 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 24 Sep 2024 13:24:27 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pvconsumer/app.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pvconsumer/app.py b/pvconsumer/app.py index ec9b877..37dd3f0 100644 --- a/pvconsumer/app.py +++ b/pvconsumer/app.py @@ -10,10 +10,10 @@ import os from datetime import datetime from typing import List, Optional, Tuple -import sentry_sdk import click import pandas as pd +import sentry_sdk from pvoutput import PVOutput from pvsite_datamodel.connection import DatabaseConnection from pvsite_datamodel.sqlmodels import SiteSQL @@ -32,14 +32,13 @@ logger = logging.getLogger(__name__) sentry_sdk.init( - dsn=os.getenv("SENTRY_DSN"), - environment=os.getenv("ENVIRONMENT", "local"), - traces_sample_rate=1 + dsn=os.getenv("SENTRY_DSN"), environment=os.getenv("ENVIRONMENT", "local"), traces_sample_rate=1 ) sentry_sdk.set_tag("app_name", "PVConsumer") sentry_sdk.set_tag("version", pvconsumer.__version__) + @click.command() @click.option( "--db-url",