From 15e76d11f1bcd77605e3c736037724052a6aa248 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Tue, 3 Mar 2015 16:53:05 -0500 Subject: [PATCH] remove all pylint comments --- endpoints/verbs.py | 7 ------- formats/aci.py | 3 --- formats/squashed.py | 1 - 3 files changed, 11 deletions(-) diff --git a/endpoints/verbs.py b/endpoints/verbs.py index 38cea8ff2..692ad1a26 100644 --- a/endpoints/verbs.py +++ b/endpoints/verbs.py @@ -18,7 +18,6 @@ from formats.squashed import SquashedDockerImage from formats.aci import ACIImage -# pylint: disable=invalid-name verbs = Blueprint('verbs', __name__) logger = logging.getLogger(__name__) @@ -100,11 +99,9 @@ def _write_synthetic_image_to_storage(verb, linked_storage_uuid, linked_location done_uploading.save() -# pylint: disable=too-many-locals def _verify_repo_verb(store, namespace, repository, tag, verb, checker=None): permission = ReadRepositoryPermission(namespace, repository) - # pylint: disable=no-member if not permission.can() and not model.repository_is_public(namespace, repository): abort(403) @@ -134,7 +131,6 @@ def _verify_repo_verb(store, namespace, repository, tag, verb, checker=None): return (repo_image, tag_image, image_json) -# pylint: disable=too-many-locals def _repo_verb_signature(namespace, repository, tag, verb, checker=None, **kwargs): # Verify that the image exists and that we have access to it. store = Storage(app) @@ -159,7 +155,6 @@ def _repo_verb_signature(namespace, repository, tag, verb, checker=None, **kwarg return make_response(signature_entry.signature) -# pylint: disable=too-many-locals 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. store = Storage(app) @@ -263,7 +258,6 @@ def os_arch_checker(os, arch): @verbs.route('/aci/////sig///', methods=['GET']) @process_auth -# pylint: disable=unused-argument def get_aci_signature(server, namespace, repository, tag, os, arch): return _repo_verb_signature(namespace, repository, tag, 'aci', checker=os_arch_checker(os, arch), os=os, arch=arch) @@ -271,7 +265,6 @@ def get_aci_signature(server, namespace, repository, tag, os, arch): @verbs.route('/aci/////aci///', methods=['GET']) @process_auth -# pylint: disable=unused-argument def get_aci_image(server, namespace, repository, tag, os, arch): return _repo_verb(namespace, repository, tag, 'aci', ACIImage(), sign=True, checker=os_arch_checker(os, arch), os=os, arch=arch) diff --git a/formats/aci.py b/formats/aci.py index 7060210eb..dd9bf4ff9 100644 --- a/formats/aci.py +++ b/formats/aci.py @@ -5,13 +5,10 @@ from formats.tarimageformatter import TarImageFormatter import json import re -# pylint: disable=bad-continuation - class ACIImage(TarImageFormatter): """ Image formatter which produces an ACI-compatible TAR. """ - # pylint: disable=too-many-arguments def stream_generator(self, namespace, repository, tag, synthetic_image_id, layer_json, get_image_iterator, get_layer_iterator): # ACI Format (.tar): diff --git a/formats/squashed.py b/formats/squashed.py index 10580a9d8..e7c2fcac8 100644 --- a/formats/squashed.py +++ b/formats/squashed.py @@ -19,7 +19,6 @@ class SquashedDockerImage(TarImageFormatter): command. """ - # pylint: disable=too-many-arguments,too-many-locals def stream_generator(self, namespace, repository, tag, synthetic_image_id, layer_json, get_image_iterator, get_layer_iterator): # Docker import V1 Format (.tar):