From 05c9729698a327e924d30d3d185461449eb366a7 Mon Sep 17 00:00:00 2001 From: un-pogaz <46523284+un-pogaz@users.noreply.github.com> Date: Fri, 24 Jan 2025 11:14:10 +0100 Subject: [PATCH] add scoped noqa 'line too long' (extra-edit) --- recipes/greensboro_news_and_record.recipe | 8 ++++---- recipes/meduza.recipe | 2 +- recipes/meduza_ru.recipe | 2 +- recipes/onda_rock.recipe | 2 +- recipes/the_insider.recipe | 2 +- recipes/tulsaworld.recipe | 2 +- setup/hosting.py | 6 ++---- src/calibre/db/tests/base.py | 2 +- src/calibre/ebooks/oeb/polish/tests/container.py | 2 +- src/calibre/utils/unrar.py | 3 +-- 10 files changed, 14 insertions(+), 17 deletions(-) diff --git a/recipes/greensboro_news_and_record.recipe b/recipes/greensboro_news_and_record.recipe index 08e64a4fc1..1056b97743 100644 --- a/recipes/greensboro_news_and_record.recipe +++ b/recipes/greensboro_news_and_record.recipe @@ -27,11 +27,11 @@ class NewsandRecord(BasicNewsRecipe): feeds = [ ('News', 'http://www.greensboro.com/search/?q=&t=article&l=10&d=&d1=&d2=&s=start_time&sd=desc&c[]=news,news/*&f=rss'), - ('Greensboro News', 'http://www.greensboro.com/search/?q=&t=article&l=100&d=&d1=&d2=&s=start_time&sd=desc&nsa=eedition&c[]=news/local,news/crime,news/goverment,news/schools,news/rockingham_county,news/local,news/crime,news/goverment,news/schools,news/rockingham_county/*&f=rss'), + ('Greensboro News', 'http://www.greensboro.com/search/?q=&t=article&l=100&d=&d1=&d2=&s=start_time&sd=desc&nsa=eedition&c[]=news/local,news/crime,news/goverment,news/schools,news/rockingham_county,news/local,news/crime,news/goverment,news/schools,news/rockingham_county/*&f=rss'), # noqa: E501 ('Business', 'http://www.greensboro.com/search/?q=&t=article&l=10&d=&d1=&d2=&s=start_time&sd=desc&c[]=business,business/*&f=rss'), - ('Local Business', 'http://www.greensboro.com/search/?q=&t=article&l=100&d=&d1=&d2=&s=start_time&sd=desc&nsa=eedition&c[]=business/local_business,business/local_business/*&f=rss'), + ('Local Business', 'http://www.greensboro.com/search/?q=&t=article&l=100&d=&d1=&d2=&s=start_time&sd=desc&nsa=eedition&c[]=business/local_business,business/local_business/*&f=rss'), # noqa: E501 ('Sports', 'http://www.greensboro.com/search/?q=&t=article&l=10&d=&d1=&d2=&s=start_time&sd=desc&c[]=sports,sports/*&f=rss'), - ('College Sports', 'http://www.greensboro.com/search/?q=&t=article&l=100&d=&d1=&d2=&s=start_time&sd=desc&nsa=eedition&c[]=sports/college,sports/college/*&f=rss'), - ('Sports Extra', 'http://www.greensboro.com/search/?q=&t=article&l=100&d=&d1=&d2=&s=start_time&sd=desc&nsa=eedition&c[]=blogs/sports_extra,blogs/sports_extra/*&f=rss'), + ('College Sports', 'http://www.greensboro.com/search/?q=&t=article&l=100&d=&d1=&d2=&s=start_time&sd=desc&nsa=eedition&c[]=sports/college,sports/college/*&f=rss'), # noqa: E501 + ('Sports Extra', 'http://www.greensboro.com/search/?q=&t=article&l=100&d=&d1=&d2=&s=start_time&sd=desc&nsa=eedition&c[]=blogs/sports_extra,blogs/sports_extra/*&f=rss'), # noqa: E501 ('Life', 'http://www.greensboro.com/search/?q=&t=article&l=10&d=&d1=&d2=&s=start_time&sd=desc&c[]=life,life/*&f=rss'), ] diff --git a/recipes/meduza.recipe b/recipes/meduza.recipe index 13ea5cfd85..dc0e01c724 100644 --- a/recipes/meduza.recipe +++ b/recipes/meduza.recipe @@ -13,7 +13,7 @@ class Meduza(BasicNewsRecipe): oldest_article = 21 max_articles_per_feed = 100 language = 'en_RU' - cover_url = 'https://meduza.io/impro/E_cJMv0IQxOC45z-YXeGuzuPB2kQ_A1XsZYrdByOCnk/fill/1200/0/ce/0/aHR0cHM6Ly9tZWR1/emEuaW8vaW1hZ2Uv/YXR0YWNobWVudHMv/aW1hZ2VzLzAwNi83/MTgvODcyL29yaWdp/bmFsLzVPSmRDdWc1/bC1JVG9lTXBqSHFH/ZXcucG5n.png' + cover_url = 'https://meduza.io/impro/E_cJMv0IQxOC45z-YXeGuzuPB2kQ_A1XsZYrdByOCnk/fill/1200/0/ce/0/aHR0cHM6Ly9tZWR1/emEuaW8vaW1hZ2Uv/YXR0YWNobWVudHMv/aW1hZ2VzLzAwNi83/MTgvODcyL29yaWdp/bmFsLzVPSmRDdWc1/bC1JVG9lTXBqSHFH/ZXcucG5n.png' # noqa: E501 auto_cleanup = False no_stylesheets = False diff --git a/recipes/meduza_ru.recipe b/recipes/meduza_ru.recipe index bf9e57de40..4943df13cc 100644 --- a/recipes/meduza_ru.recipe +++ b/recipes/meduza_ru.recipe @@ -13,7 +13,7 @@ class Meduza(BasicNewsRecipe): oldest_article = 7 max_articles_per_feed = 100 language = 'ru' - cover_url = 'https://meduza.io/impro/E_cJMv0IQxOC45z-YXeGuzuPB2kQ_A1XsZYrdByOCnk/fill/1200/0/ce/0/aHR0cHM6Ly9tZWR1/emEuaW8vaW1hZ2Uv/YXR0YWNobWVudHMv/aW1hZ2VzLzAwNi83/MTgvODcyL29yaWdp/bmFsLzVPSmRDdWc1/bC1JVG9lTXBqSHFH/ZXcucG5n.png' + cover_url = 'https://meduza.io/impro/E_cJMv0IQxOC45z-YXeGuzuPB2kQ_A1XsZYrdByOCnk/fill/1200/0/ce/0/aHR0cHM6Ly9tZWR1/emEuaW8vaW1hZ2Uv/YXR0YWNobWVudHMv/aW1hZ2VzLzAwNi83/MTgvODcyL29yaWdp/bmFsLzVPSmRDdWc1/bC1JVG9lTXBqSHFH/ZXcucG5n.png' # noqa: E501 auto_cleanup = False no_stylesheets = False diff --git a/recipes/onda_rock.recipe b/recipes/onda_rock.recipe index 00f67ea3b7..310de65e4d 100644 --- a/recipes/onda_rock.recipe +++ b/recipes/onda_rock.recipe @@ -23,7 +23,7 @@ class AdvancedUserRecipe1328535130(BasicNewsRecipe): ] no_stylesheets = True feeds = [(u'Onda Rock', u'http://www.ondarock.it/feed.php')] - masthead_url = 'http://api.ning.com/files/4ot8ampp*-rYQuwL2NoaHvVqcyu7VMyWyan12a9QMsJUWxk-q5V1-34wnD-Wj9B5qWjc1yPMLGiwQg8hZJxaySeaG2lx8hpV/2009_banner_ondarock.gif' + masthead_url = 'http://api.ning.com/files/4ot8ampp*-rYQuwL2NoaHvVqcyu7VMyWyan12a9QMsJUWxk-q5V1-34wnD-Wj9B5qWjc1yPMLGiwQg8hZJxaySeaG2lx8hpV/2009_banner_ondarock.gif' # noqa: E501 extra_css = ''' .boxtabscontain_page { diff --git a/recipes/the_insider.recipe b/recipes/the_insider.recipe index 61c5d21f61..2e1be8c8a2 100644 --- a/recipes/the_insider.recipe +++ b/recipes/the_insider.recipe @@ -7,7 +7,7 @@ from calibre.web.feeds.news import BasicNewsRecipe class TheInsider(BasicNewsRecipe): title = 'The Insider' - cover_url = 'https://s3-us-west-2.amazonaws.com/anchor-generated-image-bank/production/podcast_uploaded_nologo400/10331708/10331708-1604408816914-d03520fb339d5.jpg' + cover_url = 'https://s3-us-west-2.amazonaws.com/anchor-generated-image-bank/production/podcast_uploaded_nologo400/10331708/10331708-1604408816914-d03520fb339d5.jpg' # noqa: E501 __author__ = 'bugmen00t' description = 'Расследования Репортажи Аналитика' publisher = 'theins.ru' diff --git a/recipes/tulsaworld.recipe b/recipes/tulsaworld.recipe index 8679e807a1..8d1f678739 100644 --- a/recipes/tulsaworld.recipe +++ b/recipes/tulsaworld.recipe @@ -24,7 +24,7 @@ class TulsaWorld(BasicNewsRecipe): country = 'US' auto_cleanup=True remove_empty_feeds = True - masthead_url = 'https://bloximages.newyork1.vip.townnews.com/tulsaworld.com/content/tncms/custom/image/cfd1ce2e-7ec7-11e7-b919-8754a2b60fa6.png?_dc=1502478231' + masthead_url = 'https://bloximages.newyork1.vip.townnews.com/tulsaworld.com/content/tncms/custom/image/cfd1ce2e-7ec7-11e7-b919-8754a2b60fa6.png?_dc=1502478231' # noqa: E501 extra_css = ' body{font-family: Arial,Verdana,sans-serif } img{margin-bottom: 0.4em} .articleHeadline{font-size: xx-large; font-weight: bold} .articleKicker{font-size: x-large; font-weight: bold} .articleByline,.articleDate{font-size: small} .leadp{font-size: 1.1em} ' # noqa: E501 conversion_options = { diff --git a/setup/hosting.py b/setup/hosting.py index 3f29d30b92..6d54cf67dc 100644 --- a/setup/hosting.py +++ b/setup/hosting.py @@ -303,10 +303,8 @@ def generate_index(): # {{{ body = [] for series in rmap: body.append( - '
12') # noqa: E501 c.add_file(two, b'
123') # noqa: E501
merge(c, 'text', (one, two), one)
self.check_links(c)
diff --git a/src/calibre/utils/unrar.py b/src/calibre/utils/unrar.py
index ff8100f6d8..1ecf2d836b 100644
--- a/src/calibre/utils/unrar.py
+++ b/src/calibre/utils/unrar.py
@@ -123,8 +123,7 @@ def extract_cover_image(stream):
def test_basic():
- stream = BytesIO( # {{{
- b"Rar!\x1a\x07\x00\xcf\x90s\x00\x00\r\x00\x00\x00\x00\x00\x00\x00\x14\xe7z\x00\x80#\x00\x17\x00\x00\x00\r\x00\x00\x00\x03\xc2\xb3\x96o\x00\x00\x00\x00\x1d3\x03\x00\x00\x00\x00\x00CMT\x0c\x00\x8b\xec\x8e\xef\x14\xf6\xe6h\x04\x17\xff\xcd\x0f\xffk9b\x11]^\x80\xd3dt \x90+\x00\x14\x00\x00\x00\x08\x00\x00\x00\x03\xf1\x84\x93\\\xb9]yA\x1d3\t\x00\xa4\x81\x00\x001\\sub-one\x00\xc0\x0c\x00\x8f\xec\x89\xfe.JM\x86\x82\x0c_\xfd\xfd\xd7\x11\x1a\xef@\x9eHt \x80'\x00\x0e\x00\x00\x00\x04\x00\x00\x00\x03\x9f\xa8\x17\xf8\xaf]yA\x1d3\x07\x00\xa4\x81\x00\x00one.txt\x00\x08\xbf\x08\xae\xf3\xca\x87\xfeo\xfe\xd2n\x80-Ht \x82:\x00\x18\x00\x00\x00\x10\x00\x00\x00\x03\xa86\x81\xdf\xf9fyA\x1d3\x1a\x00\xa4\x81\x00\x00\xe8\xaf\xb6\xe6\xaf\x94\xe5\xb1\x81.txt\x00\x8bh\xf6\xd4kA\\.\x00txt\x0c\x00\x8b\xec\x8e\xef\x14\xf6\xe2l\x91\x189\xff\xdf\xfe\xc2\xd3:g\x9a\x19F=cYt \x928\x00\x11\x00\x00\x00\x08\x00\x00\x00\x03\x7f\xd6\xb6\x7f\xeafyA\x1d3\x16\x00\xa4\x81\x00\x00F\xc3\xbc\xc3\x9fe.txt\x00\x01\x00F\xfc\xdfe\x00.txt\x00\xc0