remove all pylint comments
This commit is contained in:
parent
925b269d1b
commit
15e76d11f1
3 changed files with 0 additions and 11 deletions
|
@ -18,7 +18,6 @@ from formats.squashed import SquashedDockerImage
|
||||||
from formats.aci import ACIImage
|
from formats.aci import ACIImage
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=invalid-name
|
|
||||||
verbs = Blueprint('verbs', __name__)
|
verbs = Blueprint('verbs', __name__)
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -100,11 +99,9 @@ def _write_synthetic_image_to_storage(verb, linked_storage_uuid, linked_location
|
||||||
done_uploading.save()
|
done_uploading.save()
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=too-many-locals
|
|
||||||
def _verify_repo_verb(store, namespace, repository, tag, verb, checker=None):
|
def _verify_repo_verb(store, namespace, repository, tag, verb, checker=None):
|
||||||
permission = ReadRepositoryPermission(namespace, repository)
|
permission = ReadRepositoryPermission(namespace, repository)
|
||||||
|
|
||||||
# pylint: disable=no-member
|
|
||||||
if not permission.can() and not model.repository_is_public(namespace, repository):
|
if not permission.can() and not model.repository_is_public(namespace, repository):
|
||||||
abort(403)
|
abort(403)
|
||||||
|
|
||||||
|
@ -134,7 +131,6 @@ def _verify_repo_verb(store, namespace, repository, tag, verb, checker=None):
|
||||||
return (repo_image, tag_image, image_json)
|
return (repo_image, tag_image, image_json)
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=too-many-locals
|
|
||||||
def _repo_verb_signature(namespace, repository, tag, verb, checker=None, **kwargs):
|
def _repo_verb_signature(namespace, repository, tag, verb, checker=None, **kwargs):
|
||||||
# Verify that the image exists and that we have access to it.
|
# Verify that the image exists and that we have access to it.
|
||||||
store = Storage(app)
|
store = Storage(app)
|
||||||
|
@ -159,7 +155,6 @@ def _repo_verb_signature(namespace, repository, tag, verb, checker=None, **kwarg
|
||||||
return make_response(signature_entry.signature)
|
return make_response(signature_entry.signature)
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=too-many-locals
|
|
||||||
def _repo_verb(namespace, repository, tag, verb, formatter, sign=False, checker=None, **kwargs):
|
def _repo_verb(namespace, repository, tag, verb, formatter, sign=False, checker=None, **kwargs):
|
||||||
# Verify that the image exists and that we have access to it.
|
# Verify that the image exists and that we have access to it.
|
||||||
store = Storage(app)
|
store = Storage(app)
|
||||||
|
@ -263,7 +258,6 @@ def os_arch_checker(os, arch):
|
||||||
|
|
||||||
@verbs.route('/aci/<server>/<namespace>/<repository>/<tag>/sig/<os>/<arch>/', methods=['GET'])
|
@verbs.route('/aci/<server>/<namespace>/<repository>/<tag>/sig/<os>/<arch>/', methods=['GET'])
|
||||||
@process_auth
|
@process_auth
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def get_aci_signature(server, namespace, repository, tag, os, arch):
|
def get_aci_signature(server, namespace, repository, tag, os, arch):
|
||||||
return _repo_verb_signature(namespace, repository, tag, 'aci', checker=os_arch_checker(os, arch),
|
return _repo_verb_signature(namespace, repository, tag, 'aci', checker=os_arch_checker(os, arch),
|
||||||
os=os, arch=arch)
|
os=os, arch=arch)
|
||||||
|
@ -271,7 +265,6 @@ def get_aci_signature(server, namespace, repository, tag, os, arch):
|
||||||
|
|
||||||
@verbs.route('/aci/<server>/<namespace>/<repository>/<tag>/aci/<os>/<arch>/', methods=['GET'])
|
@verbs.route('/aci/<server>/<namespace>/<repository>/<tag>/aci/<os>/<arch>/', methods=['GET'])
|
||||||
@process_auth
|
@process_auth
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def get_aci_image(server, namespace, repository, tag, os, arch):
|
def get_aci_image(server, namespace, repository, tag, os, arch):
|
||||||
return _repo_verb(namespace, repository, tag, 'aci', ACIImage(),
|
return _repo_verb(namespace, repository, tag, 'aci', ACIImage(),
|
||||||
sign=True, checker=os_arch_checker(os, arch), os=os, arch=arch)
|
sign=True, checker=os_arch_checker(os, arch), os=os, arch=arch)
|
||||||
|
|
|
@ -5,13 +5,10 @@ from formats.tarimageformatter import TarImageFormatter
|
||||||
import json
|
import json
|
||||||
import re
|
import re
|
||||||
|
|
||||||
# pylint: disable=bad-continuation
|
|
||||||
|
|
||||||
class ACIImage(TarImageFormatter):
|
class ACIImage(TarImageFormatter):
|
||||||
""" Image formatter which produces an ACI-compatible TAR.
|
""" Image formatter which produces an ACI-compatible TAR.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# pylint: disable=too-many-arguments
|
|
||||||
def stream_generator(self, namespace, repository, tag, synthetic_image_id,
|
def stream_generator(self, namespace, repository, tag, synthetic_image_id,
|
||||||
layer_json, get_image_iterator, get_layer_iterator):
|
layer_json, get_image_iterator, get_layer_iterator):
|
||||||
# ACI Format (.tar):
|
# ACI Format (.tar):
|
||||||
|
|
|
@ -19,7 +19,6 @@ class SquashedDockerImage(TarImageFormatter):
|
||||||
command.
|
command.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# pylint: disable=too-many-arguments,too-many-locals
|
|
||||||
def stream_generator(self, namespace, repository, tag, synthetic_image_id,
|
def stream_generator(self, namespace, repository, tag, synthetic_image_id,
|
||||||
layer_json, get_image_iterator, get_layer_iterator):
|
layer_json, get_image_iterator, get_layer_iterator):
|
||||||
# Docker import V1 Format (.tar):
|
# Docker import V1 Format (.tar):
|
||||||
|
|
Reference in a new issue