mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 00:36:34 +02:00
Update black hook for Python 3.14 (#857)
* Update pre-commit black to latest release * Reformat Python files for new black version
This commit is contained in:
parent
f019f05738
commit
82f34f82f2
13 changed files with 38 additions and 34 deletions
|
|
@ -1,4 +1,5 @@
|
|||
"""Sphinx extension to copy provider_models.yaml to build output."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
|
|
|
|||
|
|
@ -230,12 +230,12 @@ async def get_weather_data(request: Request, messages: list, days: int = 1):
|
|||
"day_name": date_obj.strftime("%A"),
|
||||
"temperature_c": round(temp_c, 1) if temp_c is not None else None,
|
||||
"temperature_f": celsius_to_fahrenheit(temp_c),
|
||||
"temperature_max_c": round(temp_max, 1)
|
||||
if temp_max is not None
|
||||
else None,
|
||||
"temperature_min_c": round(temp_min, 1)
|
||||
if temp_min is not None
|
||||
else None,
|
||||
"temperature_max_c": (
|
||||
round(temp_max, 1) if temp_max is not None else None
|
||||
),
|
||||
"temperature_min_c": (
|
||||
round(temp_min, 1) if temp_min is not None else None
|
||||
),
|
||||
"weather_code": weather_code,
|
||||
"sunrise": sunrise.split("T")[1] if sunrise else None,
|
||||
"sunset": sunset.split("T")[1] if sunset else None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue