style(data+endpoints): ran yapf
### Description of Changes ran yapf for the branch [TESTING->locally using docker compose] Issue: https://coreosdev.atlassian.net/browse/QUAY-632 ## Reviewer Checklist - [ ] It works! - [ ] Comments provide sufficient explanations for the next contributor - [ ] Tests cover changes and corner cases - [ ] Follows Quay syntax patterns and format
This commit is contained in:
parent
fc4b3642d3
commit
897a091692
7 changed files with 135 additions and 87 deletions
|
@ -53,8 +53,8 @@ class ListRepositoryTags(RepositoryParamResource):
|
|||
limit = min(100, max(1, parsed_args.get('limit', 50)))
|
||||
|
||||
tag_history = model.list_repository_tag_history(namespace_name=namespace,
|
||||
repository_name=repository, page=page,
|
||||
size=limit, specific_tag=specific_tag)
|
||||
repository_name=repository, page=page,
|
||||
size=limit, specific_tag=specific_tag)
|
||||
|
||||
if not tag_history:
|
||||
raise NotFound()
|
||||
|
@ -75,7 +75,7 @@ class RepositoryTag(RepositoryParamResource):
|
|||
'MoveTag': {
|
||||
'type': 'object',
|
||||
'description': 'Description of to which image a new or existing tag should point',
|
||||
'required': ['image', ],
|
||||
'required': ['image',],
|
||||
'properties': {
|
||||
'image': {
|
||||
'type': 'string',
|
||||
|
@ -149,7 +149,8 @@ class RepositoryTagImages(RepositoryParamResource):
|
|||
def get(self, namespace, repository, tag, parsed_args):
|
||||
""" List the images for the specified repository tag. """
|
||||
try:
|
||||
tag_image = model.get_repo_tag_image(Repository(namespace_name=namespace, repository_name=repository), tag)
|
||||
tag_image = model.get_repo_tag_image(
|
||||
Repository(namespace_name=namespace, repository_name=repository), tag)
|
||||
except DataModelException:
|
||||
raise NotFound()
|
||||
|
||||
|
@ -195,7 +196,7 @@ class RestoreTag(RepositoryParamResource):
|
|||
'RestoreTag': {
|
||||
'type': 'object',
|
||||
'description': 'Restores a tag to a specific image',
|
||||
'required': ['image', ],
|
||||
'required': ['image',],
|
||||
'properties': {
|
||||
'image': {
|
||||
'type': 'string',
|
||||
|
|
Reference in a new issue