Skip to content

Commit

Permalink
include 'test/results' in flake8 checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jan 5, 2024
1 parent e61f016 commit 217fa7f
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 70 deletions.
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[flake8]
exclude = .git,__pycache__,build,dist,archive,results
exclude = .git,__pycache__,build,dist,archive
ignore = E203,E226,W504
per-file-ignores =
setup.py: E501
gallery_dl/extractor/500px.py: E501
gallery_dl/extractor/mangapark.py: E501
test/results/*.py: E122,E241,E402,E501
1 change: 0 additions & 1 deletion test/results/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# published by the Free Software Foundation.

import os
import sys
import functools

__directory__ = os.path.dirname(__file__)
Expand Down
1 change: 0 additions & 1 deletion test/results/blogspot.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"extension": "jpg",
"filename" : "Icy-Moonrise---For-Web",
"num" : 1,
"num" : int,
"url" : "https://3.bp.blogspot.com/-zlJddJtJOUo/Tt4WooTPNtI/AAAAAAAABG8/dGT2cGp2E7Y/s0/Icy-Moonrise---For-Web.jpg",
},

Expand Down
6 changes: 2 additions & 4 deletions test/results/nitter1d4us.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@
"#category": ("nitter", "nitter.1d4.us", "tweet"),
"#class" : nitter.NitterTweetExtractor,

"content": r"""re:Gear up for #PokemonSwordShieldEX with special Mystery Gifts!
You’ll be able to receive four Galarian form Pokémon with Hidden Abilities, plus some very useful items. It’s our \(Mystery\) Gift to you, Trainers!
"content": r"""re:Gear up for #PokemonSwordShieldEX with special Mystery Gifts! \n
You’ll be able to receive four Galarian form Pokémon with Hidden Abilities, plus some very useful items. It’s our \(Mystery\) Gift to you, Trainers! \n
❓🎁➡️ """,
},

Expand Down
124 changes: 62 additions & 62 deletions test/results/pillowfort.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,75 +71,75 @@
"#pattern" : r"https://img2\.pillowfort\.social/posts/c8e834bc09e6_Brandee\.png",
"#count" : 1,

"avatar_frame" : None,
"avatar_id" : None,
"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_sm_url" : "https://img2.pillowfort.social/posts/c8e834bc09e6_Brandee_small.png",
"cached_tag_list": "art, digital art, mermaid, mermaids, underwater, seaweed, illustration, speed paint",
"col" : 0,
"comm_screening_status": "not_applicable",
"commentable" : True,
"comments_count": 0,
"community_id" : None,
"concealed_comment_warning": None,
"content" : "<p>Sea Bed</p>",
"created_at" : r"re:2020-02-.+",
"currentuser_default_avatar_url": None,
"currentuser_multi_avi": None,
"date" : "dt:2020-02-29 17:09:03",
"deleted" : None,
"deleted_at" : None,
"deleted_by_mod": None,
"deleted_for_flag_id": None,
"embed_code" : None,
"extension" : "png",
"filename" : "Brandee",
"hash" : "c8e834bc09e6",
"id" : 720167,
"last_activity" : r"re:2020-02-.+",
"last_activity_elapsed": r"re:\d+ months",
"last_edited_at": None,
"likes_count" : 8,
"media_type" : "picture",
"nsfw" : False,
"num" : 1,
"original_post_id": None,
"original_post_user_id": None,
"pic_row_last" : 1,
"picture_content_type": None,
"picture_file_name": None,
"picture_file_size": None,
"picture_updated_at": None,
"post_id" : 1124584,
"post_type" : "picture",
"privacy" : "public",
"reblog_copy_info": [],
"rebloggable" : True,
"reblogged_from_post_id": None,
"reblogged_from_user_id": None,
"reblogs_count" : int,
"row" : 1,
"small_image_url": None,
"tag_list" : None,
"tags" : [
"avatar_frame" : None,
"avatar_id" : None,
"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_sm_url" : "https://img2.pillowfort.social/posts/c8e834bc09e6_Brandee_small.png",
"cached_tag_list": "art, digital art, mermaid, mermaids, underwater, seaweed, illustration, speed paint",
"col" : 0,
"comm_screening_status": "not_applicable",
"commentable" : True,
"comments_count": 0,
"community_id" : None,
"concealed_comment_warning": None,
"content" : "<p>Sea Bed</p>",
"created_at" : r"re:2020-02-.+",
"currentuser_default_avatar_url": None,
"currentuser_multi_avi": None,
"date" : "dt:2020-02-29 17:09:03",
"deleted" : None,
"deleted_at" : None,
"deleted_by_mod": None,
"deleted_for_flag_id": None,
"embed_code" : None,
"extension" : "png",
"filename" : "Brandee",
"hash" : "c8e834bc09e6",
"id" : 720167,
"last_activity" : r"re:2020-02-.+",
"last_activity_elapsed": r"re:\d+ months",
"last_edited_at": None,
"likes_count" : 8,
"media_type" : "picture",
"nsfw" : False,
"num" : 1,
"original_post_id": None,
"original_post_user_id": None,
"pic_row_last" : 1,
"picture_content_type": None,
"picture_file_name": None,
"picture_file_size": None,
"picture_updated_at": None,
"post_id" : 1124584,
"post_type" : "picture",
"privacy" : "public",
"reblog_copy_info": [],
"rebloggable" : True,
"reblogged_from_post_id": None,
"reblogged_from_user_id": None,
"reblogs_count" : int,
"row" : 1,
"small_image_url": None,
"tag_list" : None,
"tags" : [
"art",
"digital art",
"mermaid",
"mermaids",
"underwater",
"seaweed",
"illustration",
"speed paint"
],
"time_elapsed" : r"re:\d+ months",
"timestamp" : str,
"title" : "",
"updated_at" : r"re:2020-02-.+",
"url" : "",
"user_concealed": None,
"user_id" : 37201,
"username" : "Maclanahan",
"speed paint",
],
"time_elapsed" : r"re:\d+ months",
"timestamp" : str,
"title" : "",
"updated_at" : r"re:2020-02-.+",
"url" : "",
"user_concealed": None,
"user_id" : 37201,
"username" : "Maclanahan",
},

{
Expand Down
2 changes: 1 addition & 1 deletion test/results/unsplash.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"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",
"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",
"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",
},
Expand Down

0 comments on commit 217fa7f

Please sign in to comment.