ruff: enable UP ruleset for detecting python deprecations

This commit is contained in:
Dima Gerasimov 2024-08-27 23:12:57 +01:00 committed by karlicoss
parent d244c7cc4e
commit 118c2d4484
9 changed files with 27 additions and 22 deletions

View file

@ -218,7 +218,7 @@ def _iter_tz_depends_on() -> str:
day = str(date.today())
hr = datetime.now().hour
hr_truncated = hr // mod * mod
return "{}_{}".format(day, hr_truncated)
return f"{day}_{hr_truncated}"
# refresh _iter_tzs every few hours -- don't think a better depends_on is possible dynamically