You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2016/04/19 23:13:14 UTC

libcloud git commit: Also run pylint on libcloud/storage/ and libcloud/utils/.

Repository: libcloud
Updated Branches:
  refs/heads/trunk 6e6cf883b -> 082e08927


Also run pylint on libcloud/storage/ and libcloud/utils/.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/082e0892
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/082e0892
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/082e0892

Branch: refs/heads/trunk
Commit: 082e08927cf27f4c3efc4a02d134f01c516e1c10
Parents: 6e6cf88
Author: Tomaz Muraus <to...@tomaz.me>
Authored: Tue Apr 19 22:34:38 2016 +0200
Committer: Tomaz Muraus <to...@tomaz.me>
Committed: Tue Apr 19 22:34:38 2016 +0200

----------------------------------------------------------------------
 libcloud/storage/drivers/backblaze_b2.py | 6 ++++++
 libcloud/storage/drivers/oss.py          | 2 ++
 libcloud/utils/py3.py                    | 2 ++
 tox.ini                                  | 2 ++
 4 files changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/082e0892/libcloud/storage/drivers/backblaze_b2.py
----------------------------------------------------------------------
diff --git a/libcloud/storage/drivers/backblaze_b2.py b/libcloud/storage/drivers/backblaze_b2.py
index fe2f335..9e871f3 100644
--- a/libcloud/storage/drivers/backblaze_b2.py
+++ b/libcloud/storage/drivers/backblaze_b2.py
@@ -233,6 +233,7 @@ class BackblazeB2StorageDriver(StorageDriver):
     supports_chunked_encoding = False
 
     def iterate_containers(self):
+        # pylint: disable=unexpected-keyword-arg
         resp = self.connection.request(action='b2_list_buckets',
                                        method='GET',
                                        include_account_id=True)
@@ -274,6 +275,7 @@ class BackblazeB2StorageDriver(StorageDriver):
         data = {}
         data['bucketName'] = container_name
         data['bucketType'] = ex_type
+        # pylint: disable=unexpected-keyword-arg
         resp = self.connection.request(action='b2_create_bucket',
                                        data=data, method='POST',
                                        include_account_id=True)
@@ -283,6 +285,7 @@ class BackblazeB2StorageDriver(StorageDriver):
     def delete_container(self, container):
         data = {}
         data['bucketId'] = container.extra['id']
+        # pylint: disable=unexpected-keyword-arg
         resp = self.connection.request(action='b2_delete_bucket',
                                        data=data, method='POST',
                                        include_account_id=True)
@@ -292,6 +295,7 @@ class BackblazeB2StorageDriver(StorageDriver):
                         delete_on_failure=True):
         action = self._get_object_download_path(container=obj.container,
                                                 obj=obj)
+        # pylint: disable=no-member
         response = self.connection.download_request(action=action)
 
         # TODO: Include metadata from response headers
@@ -309,6 +313,7 @@ class BackblazeB2StorageDriver(StorageDriver):
     def download_object_as_stream(self, obj, chunk_size=None):
         action = self._get_object_download_path(container=obj.container,
                                                 obj=obj)
+        # pylint: disable=no-member
         response = self.connection.download_request(action=action)
 
         return self._get_object(obj=obj, callback=read_in_chunks,
@@ -510,6 +515,7 @@ class BackblazeB2StorageDriver(StorageDriver):
         upload_host = parsed_url.netloc
         request_path = parsed_url.path
 
+        # pylint: disable=no-member
         response = self.connection.upload_request(action=request_path,
                                                   headers=headers,
                                                   upload_host=upload_host,

http://git-wip-us.apache.org/repos/asf/libcloud/blob/082e0892/libcloud/storage/drivers/oss.py
----------------------------------------------------------------------
diff --git a/libcloud/storage/drivers/oss.py b/libcloud/storage/drivers/oss.py
index 84df44f..33b155a 100644
--- a/libcloud/storage/drivers/oss.py
+++ b/libcloud/storage/drivers/oss.py
@@ -13,6 +13,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+# pylint: disable=unexpected-keyword-arg
+
 import base64
 import codecs
 import hmac

http://git-wip-us.apache.org/repos/asf/libcloud/blob/082e0892/libcloud/utils/py3.py
----------------------------------------------------------------------
diff --git a/libcloud/utils/py3.py b/libcloud/utils/py3.py
index 31e2b23..742d409 100644
--- a/libcloud/utils/py3.py
+++ b/libcloud/utils/py3.py
@@ -18,6 +18,8 @@
 # clause BSD license
 # https://bitbucket.org/loewis/django-3k
 
+# pylint: disable=import-error
+
 from __future__ import absolute_import
 
 import sys

http://git-wip-us.apache.org/repos/asf/libcloud/blob/082e0892/tox.ini
----------------------------------------------------------------------
diff --git a/tox.ini b/tox.ini
index e78237a..54457b1 100644
--- a/tox.ini
+++ b/tox.ini
@@ -87,6 +87,8 @@ commands = pylint -E --rcfile=./.pylintrc libcloud/common/
            pylint -E --rcfile=./.pylintrc libcloud/container/
            pylint -E --rcfile=./.pylintrc libcloud/backup/
            pylint -E --rcfile=./.pylintrc libcloud/dns/
+           pylint -E --rcfile=./.pylintrc libcloud/storage/
+           pylint -E --rcfile=./.pylintrc libcloud/utils/
 
 [testenv:lint]
 deps = -r{toxinidir}/requirements-tests.txt