Pylint ignores

This commit is contained in:
sneakypete81 2013-07-28 19:36:41 +01:00
parent d8e874aad6
commit 5cce9482db

View file

@ -1,7 +1,8 @@
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./api_album.py /tmp/pylint_iHIz1e/api_album.py
--- ./api_album.py 2013-07-28 18:32:55.587158750 +0100
+++ /tmp/pylint_iHIz1e/api_album.py 2013-07-28 18:32:52.783144848 +0100
@@ -1,6 +1,6 @@
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./api_album.py /tmp/pylint_zL0Fvx/api_album.py
--- ./api_album.py 2013-07-28 19:34:26.921934852 +0100
+++ /tmp/pylint_zL0Fvx/api_album.py 2013-07-28 19:34:32.149960776 +0100
@@ -1,6 +1,7 @@
+ # pylint: disable=C0111
from .objects import Album
-class ApiAlbums(object):
@ -9,7 +10,7 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./api_album.py /tmp
def __init__(self, client):
self._client = client
@@ -9,7 +9,7 @@
@@ -9,7 +10,7 @@
results = self._client.get("/albums/list.json", **kwds)["result"]
return [Album(self._client, album) for album in results]
@ -18,10 +19,15 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./api_album.py /tmp
def __init__(self, client):
self._client = client
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./api_photo.py /tmp/pylint_iHIz1e/api_photo.py
--- ./api_photo.py 2013-07-28 18:32:55.587158750 +0100
+++ /tmp/pylint_iHIz1e/api_photo.py 2013-07-28 18:32:52.787144864 +0100
@@ -17,7 +17,7 @@
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./api_photo.py /tmp/pylint_zL0Fvx/api_photo.py
--- ./api_photo.py 2013-07-28 19:34:26.921934852 +0100
+++ /tmp/pylint_zL0Fvx/api_photo.py 2013-07-28 19:34:33.981969860 +0100
@@ -1,3 +1,4 @@
+ # pylint: disable=C0111
import base64
from .errors import TroveboxError
@@ -17,7 +18,7 @@
ids.append(photo)
return ids
@ -30,7 +36,7 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./api_photo.py /tmp
def __init__(self, client):
self._client = client
@@ -51,7 +51,7 @@
@@ -51,7 +52,7 @@
raise TroveboxError("Delete response returned False")
return True
@ -39,10 +45,11 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./api_photo.py /tmp
def __init__(self, client):
self._client = client
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./api_tag.py /tmp/pylint_iHIz1e/api_tag.py
--- ./api_tag.py 2013-07-28 18:32:55.587158750 +0100
+++ /tmp/pylint_iHIz1e/api_tag.py 2013-07-28 18:32:52.787144864 +0100
@@ -1,6 +1,6 @@
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./api_tag.py /tmp/pylint_zL0Fvx/api_tag.py
--- ./api_tag.py 2013-07-28 19:34:26.925934871 +0100
+++ /tmp/pylint_zL0Fvx/api_tag.py 2013-07-28 19:34:45.134025160 +0100
@@ -1,6 +1,7 @@
+ # pylint: disable=C0111
from .objects import Tag
-class ApiTags(object):
@ -50,7 +57,7 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./api_tag.py /tmp/p
def __init__(self, client):
self._client = client
@@ -9,7 +9,7 @@
@@ -9,7 +10,7 @@
results = self._client.get("/tags/list.json", **kwds)["result"]
return [Tag(self._client, tag) for tag in results]
@ -59,10 +66,11 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./api_tag.py /tmp/p
def __init__(self, client):
self._client = client
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./config.py /tmp/pylint_iHIz1e/config.py
--- ./config.py 2013-07-28 18:32:55.587158750 +0100
+++ /tmp/pylint_iHIz1e/config.py 2013-07-28 18:32:52.787144864 +0100
@@ -1,7 +1,7 @@
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./config.py /tmp/pylint_zL0Fvx/config.py
--- ./config.py 2013-07-28 19:34:26.925934871 +0100
+++ /tmp/pylint_zL0Fvx/config.py 2013-07-28 19:34:40.522002291 +0100
@@ -1,7 +1,8 @@
+ # pylint: disable=C0111
from __future__ import unicode_literals
import os
try:
@ -71,7 +79,7 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./config.py /tmp/py
except ImportError:
from ConfigParser import SafeConfigParser as ConfigParser # Python2
try:
@@ -9,8 +9,8 @@
@@ -9,8 +10,8 @@
except ImportError:
import StringIO as io # Python2
@ -82,7 +90,7 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./config.py /tmp/py
consumer_key, consumer_secret,
token, token_secret):
if host is None:
@@ -65,7 +65,7 @@
@@ -65,7 +66,7 @@
parser = ConfigParser()
parser.optionxform = str # Case-sensitive options
try:
@ -91,10 +99,22 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./config.py /tmp/py
except AttributeError:
parser.readfp(buf) # Python2
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./http.py /tmp/pylint_iHIz1e/http.py
--- ./http.py 2013-07-28 18:32:55.591158774 +0100
+++ /tmp/pylint_iHIz1e/http.py 2013-07-28 18:32:52.787144864 +0100
@@ -4,18 +4,18 @@
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./errors.py /tmp/pylint_zL0Fvx/errors.py
--- ./errors.py 2013-07-28 19:30:27.132745801 +0100
+++ /tmp/pylint_zL0Fvx/errors.py 2013-07-28 19:34:41.930009273 +0100
@@ -1,3 +1,4 @@
+ # pylint: disable=C0111
class TroveboxError(Exception):
""" Indicates that an Trovebox operation failed """
pass
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./http.py /tmp/pylint_zL0Fvx/http.py
--- ./http.py 2013-07-28 19:34:26.925934871 +0100
+++ /tmp/pylint_zL0Fvx/http.py 2013-07-28 19:34:36.453982118 +0100
@@ -1,21 +1,22 @@
+ # pylint: disable=C0111
from __future__ import unicode_literals
import sys
import requests
import requests_oauthlib
import logging
try:
@ -117,7 +137,7 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./http.py /tmp/pyli
DUPLICATE_RESPONSE = {"code": 409,
"message": "This photo already exists"}
@@ -32,7 +32,7 @@
@@ -32,7 +33,7 @@
This should be used to ensure that your application will continue to work
even if the Trovebox API is updated to a new revision.
"""
@ -126,17 +146,18 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./http.py /tmp/pyli
consumer_key='', consumer_secret='',
token='', token_secret='', api_version=None):
self._api_version = api_version
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./__init__.py /tmp/pylint_iHIz1e/__init__.py
--- ./__init__.py 2013-07-28 18:32:55.591158774 +0100
+++ /tmp/pylint_iHIz1e/__init__.py 2013-07-28 18:33:03.527198125 +0100
@@ -1,5 +1,5 @@
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./__init__.py /tmp/pylint_zL0Fvx/__init__.py
--- ./__init__.py 2013-07-28 19:34:26.925934871 +0100
+++ /tmp/pylint_zL0Fvx/__init__.py 2013-07-28 19:34:28.705943698 +0100
@@ -1,5 +1,6 @@
+ # pylint: disable=C0111
from .http import Http
-from .errors import *
+from .errors import * # pylint: disable=W0401
from ._version import __version__
from . import api_photo
from . import api_tag
@@ -19,7 +19,7 @@
@@ -19,7 +20,7 @@
This should be used to ensure that your application will continue to work
even if the Trovebox API is updated to a new revision.
"""
@ -145,10 +166,15 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./__init__.py /tmp/
consumer_key='', consumer_secret='',
token='', token_secret='',
api_version=None):
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./main.py /tmp/pylint_iHIz1e/main.py
--- ./main.py 2013-07-28 18:32:55.591158774 +0100
+++ /tmp/pylint_iHIz1e/main.py 2013-07-28 18:32:52.787144864 +0100
@@ -23,7 +23,7 @@
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./main.py /tmp/pylint_zL0Fvx/main.py
--- ./main.py 2013-07-28 19:34:26.925934871 +0100
+++ /tmp/pylint_zL0Fvx/main.py 2013-07-28 19:34:30.345951830 +0100
@@ -1,3 +1,4 @@
+ # pylint: disable=C0111
#!/usr/bin/env python
import os
import sys
@@ -23,7 +24,7 @@
#################################################################
@ -157,7 +183,7 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./main.py /tmp/pyli
usage = "%prog --help"
parser = OptionParser(usage, add_help_option=False)
parser.add_option('-c', '--config', help="Configuration file to use",
@@ -81,13 +81,13 @@
@@ -81,13 +82,13 @@
sys.exit(1)
if options.method == "GET":
@ -174,10 +200,11 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./main.py /tmp/pyli
files[f].close()
if options.verbose:
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./objects.py /tmp/pylint_iHIz1e/objects.py
--- ./objects.py 2013-07-28 18:32:55.591158774 +0100
+++ /tmp/pylint_iHIz1e/objects.py 2013-07-28 18:32:52.787144864 +0100
@@ -1,14 +1,14 @@
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./objects.py /tmp/pylint_zL0Fvx/objects.py
--- ./objects.py 2013-07-28 19:34:26.925934871 +0100
+++ /tmp/pylint_zL0Fvx/objects.py 2013-07-28 19:34:38.969994595 +0100
@@ -1,14 +1,15 @@
+ # pylint: disable=C0111
try:
- from urllib.parse import quote # Python3
+ from urllib.parse import quote # Python3 # pylint: disable=F0401,E0611
@ -195,7 +222,7 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./objects.py /tmp/p
self.name = None
self._trovebox = trovebox
self._json_dict = json_dict
@@ -54,7 +54,7 @@
@@ -54,7 +55,7 @@
return self._json_dict
@ -204,7 +231,7 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./objects.py /tmp/p
def delete(self, **kwds):
"""
Delete this photo.
@@ -144,7 +144,7 @@
@@ -144,7 +145,7 @@
self._replace_fields(new_dict)
@ -213,7 +240,7 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./objects.py /tmp/p
def delete(self, **kwds):
"""
Delete this tag.
@@ -165,7 +165,7 @@
@@ -165,7 +166,7 @@
self._replace_fields(new_dict)
@ -222,3 +249,9 @@ diff --unified --recursive '--exclude=.pylint-ignores.patch' ./objects.py /tmp/p
def __init__(self, trovebox, json_dict):
self.photos = None
self.cover = None
diff --unified --recursive '--exclude=.pylint-ignores.patch' ./_version.py /tmp/pylint_zL0Fvx/_version.py
--- ./_version.py 2013-07-28 19:30:27.132745801 +0100
+++ /tmp/pylint_zL0Fvx/_version.py 2013-07-28 19:34:43.226015699 +0100
@@ -1 +1,2 @@
+ # pylint: disable=C0111
__version__ = "0.4"