Skip to content

Commit 182c390

Browse files
Merge pull request #1661 from allmightyspiff/toxFixes
Fixed TOX errors
2 parents e8f1417 + 05c6198 commit 182c390

15 files changed

+16
-18
lines changed

SoftLayer/CLI/environment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from SoftLayer.CLI import formatting
1818
from SoftLayer.CLI import routes
1919

20-
# pylint: disable=too-many-instance-attributes, invalid-name, no-self-use
20+
# pylint: disable=too-many-instance-attributes, invalid-name
2121

2222
# Calling pkg_resources.iter_entry_points shows a false-positive
2323
# pylint: disable=no-member

SoftLayer/auth.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
:license: MIT, see LICENSE for more details.
77
"""
8-
# pylint: disable=no-self-use
8+
99

1010
__all__ = [
1111
'BasicAuthentication',

SoftLayer/managers/account.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from SoftLayer import utils
1313

1414
# Invalid names are ignored due to long method names and short argument names
15-
# pylint: disable=invalid-name, no-self-use
15+
# pylint: disable=invalid-name
1616

1717
LOGGER = logging.getLogger(__name__)
1818

SoftLayer/managers/cdn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from SoftLayer import utils
1010

1111

12-
# pylint: disable=no-self-use,too-many-lines,too-many-instance-attributes
12+
# pylint: disable=too-many-lines,too-many-instance-attributes
1313

1414

1515
class CDNManager(utils.IdentifierMixin, object):

SoftLayer/managers/dedicated_host.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from SoftLayer import utils
1414

1515
# Invalid names are ignored due to long method names and short argument names
16-
# pylint: disable=invalid-name, no-self-use
16+
# pylint: disable=invalid-name
1717

1818
LOGGER = logging.getLogger(__name__)
1919

SoftLayer/managers/email.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
# Invalid names are ignored due to long method names and short argument names
13-
# pylint: disable=invalid-name, no-self-use
13+
# pylint: disable=invalid-name
1414

1515

1616
class EmailManager(utils.IdentifierMixin, object):

SoftLayer/managers/hardware.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
LOGGER = logging.getLogger(__name__)
2121

2222
# Invalid names are ignored due to long method names and short argument names
23-
# pylint: disable=invalid-name, no-self-use, too-many-lines
23+
# pylint: disable=invalid-name, too-many-lines
2424

2525
EXTRA_CATEGORIES = ['pri_ipv6_addresses',
2626
'static_ipv6_addresses',

SoftLayer/managers/ordering.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
:license: MIT, see LICENSE for more details.
77
"""
8-
# pylint: disable=no-self-use
8+
99

1010
from re import match
1111

SoftLayer/managers/storage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(self, client):
2525
self.client = client
2626
self.resolvers = [self._get_ids_from_username]
2727

28-
def _get_ids_from_username(self, username): # pylint: disable=unused-argument,no-self-use
28+
def _get_ids_from_username(self, username): # pylint: disable=unused-argument
2929
"""Should only be actually called from the block/file manager"""
3030
return []
3131

SoftLayer/managers/vs.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
'software_guard_extensions']
2929

3030

31-
# pylint: disable=no-self-use,too-many-lines
31+
# pylint: disable=,too-many-lines
3232

3333

3434
class VSManager(utils.IdentifierMixin, object):
@@ -360,7 +360,7 @@ def get_create_options(self, vsi_type="PUBLIC_CLOUD_SERVER", datacenter=None):
360360
'prices': get_item_price(item['prices'], location_group_id)
361361
})
362362

363-
elif category.__contains__('guest_disk'):
363+
elif 'guest_disk' in category:
364364
local_disk.append({
365365
'name': item['description'],
366366
'capacity': item['capacity'],
@@ -1043,7 +1043,7 @@ def upgrade(self, instance_id, cpus=None, memory=None, nic_speed=None, public=Tr
10431043
disk_number = 0
10441044
vsi_disk = self.get_instance(instance_id)
10451045
for item in vsi_disk.get('billingItem').get('children'):
1046-
if item.get('categoryCode').__contains__('guest_disk'):
1046+
if 'guest_disk' in item.get('categoryCode'):
10471047
if disk_number < int("".join(filter(str.isdigit, item.get('categoryCode')))):
10481048
disk_number = int("".join(filter(str.isdigit, item.get('categoryCode'))))
10491049
for disk_guest in disk:

SoftLayer/managers/vs_capacity.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from SoftLayer import utils
1515

1616
# Invalid names are ignored due to long method names and short argument names
17-
# pylint: disable=invalid-name, no-self-use
17+
# pylint: disable=invalid-name
1818

1919
LOGGER = logging.getLogger(__name__)
2020

SoftLayer/managers/vs_placement.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from SoftLayer import utils
1212

1313
# Invalid names are ignored due to long method names and short argument names
14-
# pylint: disable=invalid-name, no-self-use
14+
# pylint: disable=invalid-name
1515

1616
LOGGER = logging.getLogger(__name__)
1717

SoftLayer/transports/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from .xmlrpc import XmlRpcTransport
1818

1919
# transports.Request does have a lot of instance attributes. :(
20-
# pylint: disable=too-many-instance-attributes, no-self-use
20+
# pylint: disable=too-many-instance-attributes
2121

2222
__all__ = [
2323
'Request',

SoftLayer/transports/transport.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_session(user_agent):
3030

3131

3232
# transports.Request does have a lot of instance attributes. :(
33-
# pylint: disable=too-many-instance-attributes, no-self-use
33+
# pylint: disable=too-many-instance-attributes
3434
class Request(object):
3535
"""Transport request object."""
3636

tox.ini

-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ commands =
3131
-r n \
3232
--ignore=tests,fixtures \
3333
-d too-many-locals \
34-
-d star-args \
35-
-d redefined-variable-type \
3634
-d locally-disabled \
3735
-d no-else-return \
3836
-d len-as-condition \

0 commit comments

Comments
 (0)