Fixing D301 docstring.
Currently tox ignores D301 (D301: Use r”“” if anybackslashes in a docstring). This change removes D301 ignore. All pep8 violatios are fixed. Change-Id: Icfe41f21ce26e687c322daca4a927de2ebdb9848
This commit is contained in:
parent
2e0c0030a9
commit
2caee11017
@ -44,7 +44,7 @@ def parse_isotime(timestr):
|
||||
|
||||
|
||||
def from_utcnow(**timedelta_kwargs):
|
||||
"""Calculate the time in the future from utcnow.
|
||||
r"""Calculate the time in the future from utcnow.
|
||||
|
||||
:param \*\*timedelta_kwargs:
|
||||
Passed directly to :class:`datetime.timedelta` to add to the current
|
||||
@ -60,7 +60,7 @@ def from_utcnow(**timedelta_kwargs):
|
||||
|
||||
|
||||
def before_utcnow(**timedelta_kwargs):
|
||||
"""Calculate the time in the past from utcnow.
|
||||
r"""Calculate the time in the past from utcnow.
|
||||
|
||||
:param \*\*timedelta_kwargs:
|
||||
Passed directly to :class:`datetime.timedelta` to subtract from the
|
||||
|
@ -18,7 +18,7 @@ from keystoneauth1.extras._saml2.v3 import base
|
||||
|
||||
|
||||
class Password(base.BaseSAMLPlugin):
|
||||
"""Implement authentication plugin for SAML2 protocol.
|
||||
r"""Implement authentication plugin for SAML2 protocol.
|
||||
|
||||
ECP stands for `Enhanced Client or Proxy` and is a SAML2 extension
|
||||
for federated authentication where a transportation layer consists of
|
||||
|
@ -101,7 +101,7 @@ class _OidcBase(federation.FederationBaseAuth):
|
||||
return op_response
|
||||
|
||||
def _get_keystone_token(self, session, headers, federated_token_url):
|
||||
"""Exchange an acess token for a keystone token.
|
||||
r"""Exchange an acess token for a keystone token.
|
||||
|
||||
By Sending the access token in an `Authorization: Bearer` header, to
|
||||
an OpenID Connect protected endpoint (Federated Token URL). The
|
||||
|
@ -72,7 +72,7 @@ class TestCase(testtools.TestCase):
|
||||
self.assertEqual(body, last_request_body)
|
||||
|
||||
def assertQueryStringIs(self, qs=''):
|
||||
"""Verify the QueryString matches what is expected.
|
||||
r"""Verify the QueryString matches what is expected.
|
||||
|
||||
The qs parameter should be of the format \'foo=bar&abc=xyz\'
|
||||
"""
|
||||
|
3
tox.ini
3
tox.ini
@ -42,8 +42,7 @@ commands = oslo_debug_helper -t keystoneauth1/tests {posargs}
|
||||
# D205: Blank line required between one-line summary and description.
|
||||
# D208: Docstring is over-indented
|
||||
# D211: No blank lines allowed before class docstring
|
||||
# D301: Use r”“” if any backslashes in a docstring
|
||||
ignore = H405,D100,D101,D102,D103,D104,D105,D200,D203,D204,D205,D208,D211,D301
|
||||
ignore = H405,D100,D101,D102,D103,D104,D105,D200,D203,D204,D205,D208,D211
|
||||
show-source = True
|
||||
exclude = .venv,.tox,dist,doc,*egg,build,*openstack/common*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user