Skip to content

Commit

Permalink
Run pre-commit hooks for the first time
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsinger committed Aug 5, 2024
1 parent f3cdd10 commit 509a01f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gcn_email/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import click
import prometheus_client

from .core import connect_as_consumer, subscribe_to_topics, recieve_alerts
from .core import connect_as_consumer, recieve_alerts, subscribe_to_topics

log = logging.getLogger(__name__)

Expand Down
10 changes: 5 additions & 5 deletions gcn_email/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
#
# SPDX-License-Identifier: Apache-2.0
#
from email.message import EmailMessage
import json
import logging
import os
import json
from email.message import EmailMessage

import backoff
import boto3
from boto3.dynamodb.conditions import Key
from gcn_kafka import Consumer, config_from_env
from ratelimit import limits, RateLimitException
import backoff
from ratelimit import RateLimitException, limits

from .helpers import periodic_task
from . import metrics
from .helpers import periodic_task

SESV2 = boto3.client("sesv2")
SENDER = f'GCN Notices <{os.environ["EMAIL_SENDER"]}>'
Expand Down
1 change: 1 addition & 0 deletions gcn_email/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# SPDX-License-Identifier: Apache-2.0
#
"""Prometheus metrics."""

import prometheus_client

received = prometheus_client.Counter(
Expand Down

0 comments on commit 509a01f

Please sign in to comment.