Remove unneeded exclusions

This commit is contained in:
Kovid Goyal 2025-01-27 11:15:47 +05:30
parent 25ed9a53f9
commit 8fa56620df
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
5 changed files with 5 additions and 9 deletions

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python
# vim:fileencoding=utf-8
__license__ = 'GPL v3'

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python
# vim:fileencoding=utf-8
__license__ = 'GPL v3'

View File

@ -145,7 +145,7 @@ class DemoDialog(QDialog):
db.add_format(book_id, fmt, ffile, run_hooks=False)
info_dialog(self, 'Updated files',
'Updated the metadata in the files of %d book(s)'%len(ids),
f'Updated the metadata in the files of {len(ids)} book(s)',
show=True)
def config(self):

View File

@ -47,12 +47,10 @@ unfixable = ['PIE794', 'ISC001']
[tool.ruff.lint.per-file-ignores]
"recipes/*" = ['UP']
"manual/plugin_examples/*" = ['UP']
"setup/changelog.py" = ['ISC001']
"src/calibre/*" = ['UP031']
"src/calibre/ebooks/unihandecode/*codepoints.py" = ['E501']
"src/calibre/ebooks/metadata/sources/*" = ['UP']
"src/calibre/ebooks/metadata/sources/base.py" = ['RET501']
"src/calibre/gui2/store/stores/*" = ['UP']
"src/qt/*.py" = ['I', 'E302']
"src/qt/*.pyi" = ['I']

View File

@ -487,7 +487,7 @@ class Source(Plugin):
consistent, so only implement it if it is possible to construct the URL
from a known scheme given identifiers.
'''
return None
return
def get_book_url_name(self, idtype, idval, url):
'''
@ -513,7 +513,7 @@ class Source(Plugin):
Note that this method must only return validated URLs, i.e. not URLS
that could result in a generic cover image or a not found error.
'''
return None
return
def id_from_url(self, url):
'''
@ -522,7 +522,7 @@ class Source(Plugin):
If the URL does not match the pattern for the metadata source,
return None.
'''
return None
return
def identify_results_keygen(self, title=None, authors=None,
identifiers={}):
@ -581,7 +581,7 @@ class Source(Plugin):
of the error suitable for showing to the user
'''
return None
return
def download_cover(self, log, result_queue, abort,
title=None, authors=None, identifiers={}, timeout=30, get_best_cover=False):