From 79ff8be26a9fd08843d709f8d96cc1aeeb3e0cdb Mon Sep 17 00:00:00 2001 From: un-pogaz <46523284+un-pogaz@users.noreply.github.com> Date: Fri, 10 Oct 2025 08:24:39 +0200 Subject: [PATCH] Pylint error (manual) ruff 'PLE' --- pyproject.toml | 2 ++ recipes/al_monitor.recipe | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cc420d437d..f28527c5dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -107,11 +107,13 @@ ignore = [ 'E402', 'E741', 'UP012', 'UP030', 'C413', 'C420', 'PIE790', 'ISC003', 'RUF001', 'RUF002', 'RUF003', 'RUF005', 'RUF012', 'RUF013', 'RUF015', 'RUF031', 'RUF100', + 'PLE1205', 'RUF059', # unused unpacked variable ] select = [ 'E', 'F', 'I', 'W', 'INT', 'Q', 'UP', 'YTT', 'TID', 'C4', 'COM818', 'PIE', 'RET501', 'ISC', + 'PLE', 'RUF', # note: RUF can flag many unsolicited errors # preview rules 'RUF051', 'RUF056', # useless dict operation diff --git a/recipes/al_monitor.recipe b/recipes/al_monitor.recipe index 94d62adb43..3f63babc8a 100644 --- a/recipes/al_monitor.recipe +++ b/recipes/al_monitor.recipe @@ -192,7 +192,7 @@ class AlMonitor(BasicNewsRecipe): abs_url = 'http://www.al-monitor.com' + url else: self._p('Not sure how to make abs_url: ' + url) - raise + raise ValueError('Not sure how to make abs_url: ' + url) if '#' in abs_url: abs_url = ''.join(abs_url.split('#')[0:-1])