Skip to content
Snippets Groups Projects
Commit 2424386a authored by Yannick DAYER's avatar Yannick DAYER
Browse files

[refactor] black

parent bbd7481f
No related branches found
Tags v3.0.5
1 merge request!304Fix the gitlab warning about list returning partial results
Pipeline #63361 passed
...@@ -60,7 +60,9 @@ def get_last_tag(package): ...@@ -60,7 +60,9 @@ def get_last_tag(package):
# according to the Gitlab API documentation, tags are sorted from the last # according to the Gitlab API documentation, tags are sorted from the last
# updated to the first, by default - no need to do further sorting! # updated to the first, by default - no need to do further sorting!
tag_list = package.tags.list(page=1, per_page=1) # Silence userWarning on list() tag_list = package.tags.list(
page=1, per_page=1
) # Silence userWarning on list()
if tag_list: if tag_list:
# there are tags, use these # there are tags, use these
...@@ -86,7 +88,9 @@ def get_last_tag_date(package): ...@@ -86,7 +88,9 @@ def get_last_tag_date(package):
# according to the Gitlab API documentation, tags are sorted from the last # according to the Gitlab API documentation, tags are sorted from the last
# updated to the first, by default - no need to do further sorting! # updated to the first, by default - no need to do further sorting!
tag_list = package.tags.list(page=1, per_page=1) # Silence userWarning on list() tag_list = package.tags.list(
page=1, per_page=1
) # Silence userWarning on list()
if tag_list: if tag_list:
# there are tags, use these # there are tags, use these
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment