Skip to content

Commit

Permalink
Remove unneeded exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Jan 27, 2025
1 parent 25ed9a5 commit 8fa5662
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion manual/plugin_examples/editor_demo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# vim:fileencoding=utf-8


__license__ = 'GPL v3'
Expand Down
1 change: 0 additions & 1 deletion manual/plugin_examples/editor_demo/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# vim:fileencoding=utf-8


__license__ = 'GPL v3'
Expand Down
2 changes: 1 addition & 1 deletion manual/plugin_examples/interface_demo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def update_metadata(self):
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):
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
8 changes: 4 additions & 4 deletions src/calibre/ebooks/metadata/sources/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def get_book_url(self, identifiers):
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):
'''
Expand All @@ -513,7 +513,7 @@ def get_cached_cover_url(self, identifiers):
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):
'''
Expand All @@ -522,7 +522,7 @@ def id_from_url(self, url):
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={}):
Expand Down Expand Up @@ -581,7 +581,7 @@ def identify(self, log, result_queue, abort, title=None, authors=None,
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):
Expand Down

0 comments on commit 8fa5662

Please sign in to comment.