Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 1, 2024
1 parent a65652d commit c6c466b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions snow_today_webapp_ingest/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
NOTE: imports are done in functions to avoid needing to evaluate code within those
imports when doing `--help`.
"""

from pathlib import Path
from shutil import rmtree
from tempfile import mkdtemp
Expand Down
1 change: 1 addition & 0 deletions snow_today_webapp_ingest/data_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
TODO: Better name! "Data types" isn't much better. "Data kinds"?
"""

import re
from dataclasses import dataclass
from functools import partial
Expand Down
1 change: 1 addition & 0 deletions snow_today_webapp_ingest/ingest/cogs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Convert non-CO GeoTIFFs to Cloud-Optimized GeoTIFFs."""

import subprocess
from pathlib import Path
from pprint import pformat
Expand Down
1 change: 1 addition & 0 deletions snow_today_webapp_ingest/ingest/swe_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
CRITICAL: This code currently only expects and handles a single region of SWE data.
"""

import csv
import io
from pathlib import Path
Expand Down
4 changes: 2 additions & 2 deletions snow_today_webapp_ingest/types_/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ class PlotData(BaseModel):
year_to_date: PlotPointColumn = Field(
description="Observed values for the current water year to date",
)
min: PlotPointColumn = Field( # noqa: A003
min: PlotPointColumn = Field(
description=(
"Observed values for the minimum water year (as specified in"
" `metadata.minYear`)"
),
)
max: PlotPointColumn = Field( # noqa: A003
max: PlotPointColumn = Field(
description=(
"Observed values for the maximum water year (as specified in"
" `metadata.maxYear`)"
Expand Down
11 changes: 7 additions & 4 deletions snow_today_webapp_ingest/types_/subregion_hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ class SubRegionsHierarchyCollectionRegionsIndex(RootModel):

class SubRegionsHierarchyCollectionRegion(BaseModel):
# TODO: Will this output as {} or null?
collections: None | dict[
SubRegionCollectionIdentifier,
SubRegionsHierarchyCollectionRegionsIndex,
] = None
collections: (
None
| dict[
SubRegionCollectionIdentifier,
SubRegionsHierarchyCollectionRegionsIndex,
]
) = None


class SubRegionsHierarchyCollection(BaseModel):
Expand Down
1 change: 1 addition & 0 deletions snow_today_webapp_ingest/util/field_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Currently for SWE JSON only.
"""

import math


Expand Down

0 comments on commit c6c466b

Please sign in to comment.