Fix and enable gating on F811
Fixes duplicate method definitions and enables gating on F811 Change-Id: Ic360e70d13da864b8b5c10fc5e731b3952b2d2e8
This commit is contained in:
parent
4570c7aca1
commit
44ce901008
@ -61,9 +61,6 @@ class AccessInfo(dict):
|
|||||||
self.service_catalog = service_catalog.ServiceCatalog.factory(
|
self.service_catalog = service_catalog.ServiceCatalog.factory(
|
||||||
resource_dict=self, region_name=self.get('region_name'))
|
resource_dict=self, region_name=self.get('region_name'))
|
||||||
|
|
||||||
def has_service_catalog(self):
|
|
||||||
return 'serviceCatalog' in self
|
|
||||||
|
|
||||||
def will_expire_soon(self, stale_duration=None):
|
def will_expire_soon(self, stale_duration=None):
|
||||||
"""Determines if expiration is about to occur.
|
"""Determines if expiration is about to occur.
|
||||||
|
|
||||||
|
3
tox.ini
3
tox.ini
@ -27,9 +27,8 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|||||||
downloadcache = ~/cache/pip
|
downloadcache = ~/cache/pip
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
# F811: redefinition of unused 'client' from line 81
|
|
||||||
# F821: undefined name
|
# F821: undefined name
|
||||||
# H304: no relative imports
|
# H304: no relative imports
|
||||||
ignore = F811,F821,H304
|
ignore = F821,H304
|
||||||
show-source = True
|
show-source = True
|
||||||
exclude = .venv,.tox,dist,doc,*egg,build
|
exclude = .venv,.tox,dist,doc,*egg,build
|
||||||
|
Loading…
Reference in New Issue
Block a user