Skip to content

Commit

Permalink
Merge pull request #644 from gulfofmaine/bump-dependencies
Browse files Browse the repository at this point in the history
Bump all sorts of dependencies to hopefully unblock dependabot
  • Loading branch information
abkfenris authored Dec 2, 2022
2 parents 4e4899e + e12972a commit 47a533f
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 113 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ repos:
hooks:
- id: pyupgrade
args:
- --py39-plus
- --py310-plus

- repo: https://github.com/asottile/add-trailing-comma
rev: v2.3.0
Expand Down
2 changes: 1 addition & 1 deletion app/buoy_barn/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def before_send(event, hint):
"health_check",
"health_check.db",
"health_check.cache",
"health_check.contrib.celery_ping",
# "health_check.contrib.celery_ping",
# User management
"account.apps.AccountConfig",
# Dataset and forecast management
Expand Down
3 changes: 1 addition & 2 deletions app/forecasts/utils/erddap.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
"""ERDDAP dataset interaction utility functions"""
from datetime import datetime
from typing import Union

from pandas import DataFrame


def attribute_value(info_df: DataFrame, attribute: str) -> Union[float, str, int]:
def attribute_value(info_df: DataFrame, attribute: str) -> float | str | int:
"""Return the value of a single dataset attribute"""
row = info_df[info_df["Attribute Name"] == attribute].values[0]
value = row[-1]
Expand Down
Loading

0 comments on commit 47a533f

Please sign in to comment.