mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove unneeded exclusions
This commit is contained in:
parent
25ed9a53f9
commit
8fa56620df
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
# vim:fileencoding=utf-8
|
||||
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
# vim:fileencoding=utf-8
|
||||
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
|
@ -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):
|
||||
|
@ -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']
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user