diff --git a/recipes/wsj.recipe b/recipes/wsj.recipe index 076925551c..0d2584202d 100644 --- a/recipes/wsj.recipe +++ b/recipes/wsj.recipe @@ -143,7 +143,7 @@ class WSJ(BasicNewsRecipe): br.addheaders += [ ('Accept-Encoding', 'gzip'), ('cache-control', 'no-cache'), - ('x-api-key', ('e''b''2''4''0''8''c''d''2''7''f''8''9''1''3''d''4''2''1''f''a''3''d''5''c''3''d''0''7''c''c''f''0''3''4''c''b''4''4''8')), + ('x-api-key', ('e''b''2''4''0''8''c''d''2''7''f''8''9''1''3''d''4''2''1''f''a''3''d''5''c''3''d''0''7''c''c''f''0''3''4''c''b''4''4''8')), # noqa: ISC001 ] return br diff --git a/recipes/wsj_mag.recipe b/recipes/wsj_mag.recipe index 8276f27e84..a0c4fcdf78 100644 --- a/recipes/wsj_mag.recipe +++ b/recipes/wsj_mag.recipe @@ -118,7 +118,7 @@ class WSJ(BasicNewsRecipe): br.addheaders += [ ('Accept-Encoding', 'gzip'), ('cache-control', 'no-cache'), - ('x-api-key', ('e''b''2''4''0''8''c''d''2''7''f''8''9''1''3''d''4''2''1''f''a''3''d''5''c''3''d''0''7''c''c''f''0''3''4''c''b''4''4''8')), + ('x-api-key', ('e''b''2''4''0''8''c''d''2''7''f''8''9''1''3''d''4''2''1''f''a''3''d''5''c''3''d''0''7''c''c''f''0''3''4''c''b''4''4''8')), # noqa: ISC001 ] return br diff --git a/recipes/wsj_news.recipe b/recipes/wsj_news.recipe index d5a9d3e1e8..4607c41462 100644 --- a/recipes/wsj_news.recipe +++ b/recipes/wsj_news.recipe @@ -151,7 +151,7 @@ class WSJ(BasicNewsRecipe): br.addheaders += [ ('Accept-Encoding', 'gzip'), ('cache-control', 'no-cache'), - ('x-api-key', ('e''b''2''4''0''8''c''d''2''7''f''8''9''1''3''d''4''2''1''f''a''3''d''5''c''3''d''0''7''c''c''f''0''3''4''c''b''4''4''8')), + ('x-api-key', ('e''b''2''4''0''8''c''d''2''7''f''8''9''1''3''d''4''2''1''f''a''3''d''5''c''3''d''0''7''c''c''f''0''3''4''c''b''4''4''8')), # noqa: ISC001 ] return br diff --git a/ruff-strict-pep8.toml b/ruff-strict-pep8.toml index 993676788c..3ea2b2b3a9 100644 --- a/ruff-strict-pep8.toml +++ b/ruff-strict-pep8.toml @@ -47,6 +47,7 @@ unfixable = ['PIE794', 'ISC001'] [lint.per-file-ignores] "recipes/*" = ['UP'] "manual/plugin_examples/*" = ['UP'] +"setup/changelog.py" = ['ISC001'] "setup/commands.py" = ['RUF022'] "src/calibre/*" = ['UP031'] "src/calibre/customize/__init__.py" = ['RET501'] diff --git a/src/calibre/ebooks/conversion/utils.py b/src/calibre/ebooks/conversion/utils.py index 34985bf9e9..21cad2fe81 100644 --- a/src/calibre/ebooks/conversion/utils.py +++ b/src/calibre/ebooks/conversion/utils.py @@ -58,7 +58,7 @@ class HeuristicProcessor: return '