lint: pylint comments and unused imports
This commit is contained in:
parent
75fa007c54
commit
90a3782933
3 changed files with 4 additions and 3 deletions
2
app.py
2
app.py
|
@ -27,6 +27,8 @@ from data.queue import WorkQueue
|
||||||
from data.userevent import UserEventsBuilderModule
|
from data.userevent import UserEventsBuilderModule
|
||||||
from avatars.avatars import Avatar
|
from avatars.avatars import Avatar
|
||||||
|
|
||||||
|
# pylint: disable=invalid-name,too-many-public-methods,too-few-public-methods,too-many-ancestors
|
||||||
|
|
||||||
|
|
||||||
class Config(BaseConfig):
|
class Config(BaseConfig):
|
||||||
""" Flask config enhanced with a `from_yamlfile` method """
|
""" Flask config enhanced with a `from_yamlfile` method """
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
# pylint: disable=missing-docstring,bad-continuation
|
|
||||||
|
|
||||||
from app import app
|
from app import app
|
||||||
from util.streamlayerformat import StreamLayerMerger
|
from util.streamlayerformat import StreamLayerMerger
|
||||||
from formats.tarimageformatter import TarImageFormatter
|
from formats.tarimageformatter import TarImageFormatter
|
||||||
|
@ -7,6 +5,7 @@ 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.
|
||||||
|
|
|
@ -5,7 +5,6 @@ from formats.tarimageformatter import TarImageFormatter
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
import json
|
import json
|
||||||
import tarfile
|
|
||||||
|
|
||||||
class FileEstimationException(Exception):
|
class FileEstimationException(Exception):
|
||||||
""" Exception raised by build_docker_load_stream if the estimated size of the layer TAR
|
""" Exception raised by build_docker_load_stream if the estimated size of the layer TAR
|
||||||
|
@ -20,6 +19,7 @@ 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