chore: replace flake8 and black with ruff

This commit is contained in:
aserper
2025-12-13 23:48:58 -05:00
parent 6c4ef36aa8
commit 561377d517
9 changed files with 79 additions and 52 deletions

4
bot.py
View File

@@ -95,9 +95,7 @@ class MastodonRSSBot:
try:
feed = feedparser.parse(feed_url)
if hasattr(feed, "bozo_exception"):
logger.warning(
f"Feed parsing issue for {feed_url}: {feed.bozo_exception}"
)
logger.warning(f"Feed parsing issue for {feed_url}: {feed.bozo_exception}")
return feed
except Exception as e:
logger.error(f"Error parsing feed {feed_url}: {e}")