From bee08575b75357912ca2368966a3a65417813185 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Fri, 31 May 2024 21:20:44 +0200 Subject: [PATCH] ruff.toml: enable RSE plugin --- planet/management/commands/update_planet.py | 2 +- ruff.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/planet/management/commands/update_planet.py b/planet/management/commands/update_planet.py index 857d3fe6..ccea685a 100644 --- a/planet/management/commands/update_planet.py +++ b/planet/management/commands/update_planet.py @@ -104,7 +104,7 @@ def parse_entry(self, entry, feed_instance, latest): if latest and latest.publishdate >= published: logger.debug("feed: '%s' has no more new entries", url) - raise ItemOlderThenLatest() + raise ItemOlderThenLatest if not entry.link: logger.error("feed '%s' entry has no link, skipping", url) diff --git a/ruff.toml b/ruff.toml index bd253f71..2b354b30 100644 --- a/ruff.toml +++ b/ruff.toml @@ -11,6 +11,7 @@ select = [ "ISC", # flake8-implicit-str-concat "PIE", # flake8-pie "PLE", # pylint errors + "RSE", # flake8-raise "T10", # flake8-debugger "TCH", # flake8-type-checking "UP032", # f-string