Pylint error (manual)

ruff 'PLE'
This commit is contained in:
un-pogaz 2025-10-10 08:24:39 +02:00
parent 5e68d7e739
commit 79ff8be26a
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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])