Skip to content

Commit

Permalink
Run make update
Browse files Browse the repository at this point in the history
  • Loading branch information
Fireye04 committed Jan 20, 2025
1 parent 01aab63 commit 57fe9c6
Show file tree
Hide file tree
Showing 7 changed files with 1,391 additions and 1,413 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.3
rev: v0.9.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
1,092 changes: 554 additions & 538 deletions requirements/dev.txt

Large diffs are not rendered by default.

1,439 changes: 708 additions & 731 deletions requirements/main.txt

Large diffs are not rendered by default.

260 changes: 123 additions & 137 deletions requirements/tox.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/sasquatchbackpack/commands/usgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def usgs_earthquake_data(
queried data to kafka.
"""
click.echo(
f"Querying USGS with post mode {"enabled" if post else "disabled"}..."
f"Querying USGS with post mode {'enabled' if post else 'disabled'}..."
)

days, hours = duration
Expand Down
5 changes: 2 additions & 3 deletions src/sasquatchbackpack/sasquatch.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Handles dispatch of backpack data to kafka."""

__all__ = ["BackpackDispatcher", "DispatcherConfig", "DataSource"]
__all__ = ["BackpackDispatcher", "DataSource", "DispatcherConfig"]

import asyncio
import os
Expand Down Expand Up @@ -134,8 +134,7 @@ def create_topic(self) -> str:
return f"Error getting cluster ID: {e}"

topic_config = {
"topic_name": f"{self.config.namespace}."
f"{self.source.topic_name}",
"topic_name": f"{self.config.namespace}.{self.source.topic_name}",
"partitions_count": self.config.partitions_count,
"replication_factor": self.config.replication_factor,
}
Expand Down
4 changes: 2 additions & 2 deletions src/sasquatchbackpack/scripts/usgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from sasquatchbackpack.sasquatch import DataSource
from sasquatchbackpack.schemas.usgs import EarthquakeSchema

__all__ = ["USGSSource", "USGSConfig"]
__all__ = ["USGSConfig", "USGSSource"]


def search_api(
Expand Down Expand Up @@ -154,4 +154,4 @@ def get_redis_key(self, datapoint: dict) -> str:
"""
# Redis keys are formatted "topic_name:key_value"
# to keep data from different APIs discreet
return f"{self.topic_name}:{datapoint["value"]["id"]}"
return f"{self.topic_name}:{datapoint['value']['id']}"

0 comments on commit 57fe9c6

Please sign in to comment.