mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-03-09 19:33:40 -04:00
Pylint error (manual)
ruff 'PLE'
This commit is contained in:
parent
5e68d7e739
commit
79ff8be26a
@ -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
|
||||
|
||||
@ -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])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user