include 'test/results' in flake8 checks

This commit is contained in:
Mike Fährmann
2024-01-05 18:16:33 +01:00
parent e61f016465
commit 217fa7f8a1
6 changed files with 67 additions and 70 deletions

View File

@@ -1,7 +1,8 @@
[flake8] [flake8]
exclude = .git,__pycache__,build,dist,archive,results exclude = .git,__pycache__,build,dist,archive
ignore = E203,E226,W504 ignore = E203,E226,W504
per-file-ignores = per-file-ignores =
setup.py: E501 setup.py: E501
gallery_dl/extractor/500px.py: E501 gallery_dl/extractor/500px.py: E501
gallery_dl/extractor/mangapark.py: E501 gallery_dl/extractor/mangapark.py: E501
test/results/*.py: E122,E241,E402,E501

View File

@@ -5,7 +5,6 @@
# published by the Free Software Foundation. # published by the Free Software Foundation.
import os import os
import sys
import functools import functools
__directory__ = os.path.dirname(__file__) __directory__ = os.path.dirname(__file__)

View File

@@ -43,7 +43,6 @@ __tests__ = (
"extension": "jpg", "extension": "jpg",
"filename" : "Icy-Moonrise---For-Web", "filename" : "Icy-Moonrise---For-Web",
"num" : 1, "num" : 1,
"num" : int,
"url" : "https://3.bp.blogspot.com/-zlJddJtJOUo/Tt4WooTPNtI/AAAAAAAABG8/dGT2cGp2E7Y/s0/Icy-Moonrise---For-Web.jpg", "url" : "https://3.bp.blogspot.com/-zlJddJtJOUo/Tt4WooTPNtI/AAAAAAAABG8/dGT2cGp2E7Y/s0/Icy-Moonrise---For-Web.jpg",
}, },

View File

@@ -41,10 +41,8 @@ __tests__ = (
"#category": ("nitter", "nitter.1d4.us", "tweet"), "#category": ("nitter", "nitter.1d4.us", "tweet"),
"#class" : nitter.NitterTweetExtractor, "#class" : nitter.NitterTweetExtractor,
"content": r"""re:Gear up for #PokemonSwordShieldEX with special Mystery Gifts! "content": r"""re:Gear up for #PokemonSwordShieldEX with special Mystery Gifts! \n
Youll be able to receive four Galarian form Pokémon with Hidden Abilities, plus some very useful items. Its our \(Mystery\) Gift to you, Trainers! \n
Youll be able to receive four Galarian form Pokémon with Hidden Abilities, plus some very useful items. Its our \(Mystery\) Gift to you, Trainers!
❓🎁➡️ """, ❓🎁➡️ """,
}, },

View File

@@ -71,58 +71,58 @@ __tests__ = (
"#pattern" : r"https://img2\.pillowfort\.social/posts/c8e834bc09e6_Brandee\.png", "#pattern" : r"https://img2\.pillowfort\.social/posts/c8e834bc09e6_Brandee\.png",
"#count" : 1, "#count" : 1,
"avatar_frame" : None, "avatar_frame" : None,
"avatar_id" : None, "avatar_id" : None,
"avatar_url" : "https://img3.pillowfort.social/avatars/000/037/139/original/437.jpg?1545015697", "avatar_url" : "https://img3.pillowfort.social/avatars/000/037/139/original/437.jpg?1545015697",
"b2_lg_url" : "https://img2.pillowfort.social/posts/c8e834bc09e6_Brandee.png", "b2_lg_url" : "https://img2.pillowfort.social/posts/c8e834bc09e6_Brandee.png",
"b2_sm_url" : "https://img2.pillowfort.social/posts/c8e834bc09e6_Brandee_small.png", "b2_sm_url" : "https://img2.pillowfort.social/posts/c8e834bc09e6_Brandee_small.png",
"cached_tag_list": "art, digital art, mermaid, mermaids, underwater, seaweed, illustration, speed paint", "cached_tag_list": "art, digital art, mermaid, mermaids, underwater, seaweed, illustration, speed paint",
"col" : 0, "col" : 0,
"comm_screening_status": "not_applicable", "comm_screening_status": "not_applicable",
"commentable" : True, "commentable" : True,
"comments_count": 0, "comments_count": 0,
"community_id" : None, "community_id" : None,
"concealed_comment_warning": None, "concealed_comment_warning": None,
"content" : "<p>Sea Bed</p>", "content" : "<p>Sea Bed</p>",
"created_at" : r"re:2020-02-.+", "created_at" : r"re:2020-02-.+",
"currentuser_default_avatar_url": None, "currentuser_default_avatar_url": None,
"currentuser_multi_avi": None, "currentuser_multi_avi": None,
"date" : "dt:2020-02-29 17:09:03", "date" : "dt:2020-02-29 17:09:03",
"deleted" : None, "deleted" : None,
"deleted_at" : None, "deleted_at" : None,
"deleted_by_mod": None, "deleted_by_mod": None,
"deleted_for_flag_id": None, "deleted_for_flag_id": None,
"embed_code" : None, "embed_code" : None,
"extension" : "png", "extension" : "png",
"filename" : "Brandee", "filename" : "Brandee",
"hash" : "c8e834bc09e6", "hash" : "c8e834bc09e6",
"id" : 720167, "id" : 720167,
"last_activity" : r"re:2020-02-.+", "last_activity" : r"re:2020-02-.+",
"last_activity_elapsed": r"re:\d+ months", "last_activity_elapsed": r"re:\d+ months",
"last_edited_at": None, "last_edited_at": None,
"likes_count" : 8, "likes_count" : 8,
"media_type" : "picture", "media_type" : "picture",
"nsfw" : False, "nsfw" : False,
"num" : 1, "num" : 1,
"original_post_id": None, "original_post_id": None,
"original_post_user_id": None, "original_post_user_id": None,
"pic_row_last" : 1, "pic_row_last" : 1,
"picture_content_type": None, "picture_content_type": None,
"picture_file_name": None, "picture_file_name": None,
"picture_file_size": None, "picture_file_size": None,
"picture_updated_at": None, "picture_updated_at": None,
"post_id" : 1124584, "post_id" : 1124584,
"post_type" : "picture", "post_type" : "picture",
"privacy" : "public", "privacy" : "public",
"reblog_copy_info": [], "reblog_copy_info": [],
"rebloggable" : True, "rebloggable" : True,
"reblogged_from_post_id": None, "reblogged_from_post_id": None,
"reblogged_from_user_id": None, "reblogged_from_user_id": None,
"reblogs_count" : int, "reblogs_count" : int,
"row" : 1, "row" : 1,
"small_image_url": None, "small_image_url": None,
"tag_list" : None, "tag_list" : None,
"tags" : [ "tags" : [
"art", "art",
"digital art", "digital art",
"mermaid", "mermaid",
@@ -130,16 +130,16 @@ __tests__ = (
"underwater", "underwater",
"seaweed", "seaweed",
"illustration", "illustration",
"speed paint" "speed paint",
], ],
"time_elapsed" : r"re:\d+ months", "time_elapsed" : r"re:\d+ months",
"timestamp" : str, "timestamp" : str,
"title" : "", "title" : "",
"updated_at" : r"re:2020-02-.+", "updated_at" : r"re:2020-02-.+",
"url" : "", "url" : "",
"user_concealed": None, "user_concealed": None,
"user_id" : 37201, "user_id" : 37201,
"username" : "Maclanahan", "username" : "Maclanahan",
}, },
{ {

View File

@@ -81,7 +81,7 @@ __tests__ = (
"full" : "https://images.unsplash.com/photo-1601823984263-b87b59798b70?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzAwODY2NDE4fA&ixlib=rb-4.0.3&q=85", "full" : "https://images.unsplash.com/photo-1601823984263-b87b59798b70?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzAwODY2NDE4fA&ixlib=rb-4.0.3&q=85",
"raw" : "https://images.unsplash.com/photo-1601823984263-b87b59798b70?ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzAwODY2NDE4fA&ixlib=rb-4.0.3", "raw" : "https://images.unsplash.com/photo-1601823984263-b87b59798b70?ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzAwODY2NDE4fA&ixlib=rb-4.0.3",
"regular" : "https://images.unsplash.com/photo-1601823984263-b87b59798b70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzAwODY2NDE4fA&ixlib=rb-4.0.3&q=80&w=1080", "regular" : "https://images.unsplash.com/photo-1601823984263-b87b59798b70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzAwODY2NDE4fA&ixlib=rb-4.0.3&q=80&w=1080",
"small" : "https://images.unsplash.com/photo-1601823984263-b87b59798b70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzAwODY2NDE4fA&ixlib=rb-4.0.3&q=80&w=400", "small" : "https://images.unsplash.com/photo-1601823984263-b87b59798b70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzAwODY2NDE4fA&ixlib=rb-4.0.3&q=80&w=400",
"small_s3": "https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1601823984263-b87b59798b70", "small_s3": "https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1601823984263-b87b59798b70",
"thumb" : "https://images.unsplash.com/photo-1601823984263-b87b59798b70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzAwODY2NDE4fA&ixlib=rb-4.0.3&q=80&w=200", "thumb" : "https://images.unsplash.com/photo-1601823984263-b87b59798b70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzAwODY2NDE4fA&ixlib=rb-4.0.3&q=80&w=200",
}, },