Merge "Fix D105: Missing docstring in magic method (PEP257)"

This commit is contained in:
Jenkins 2016-05-17 08:29:43 +00:00 committed by Gerrit Code Review
commit 576b56df9f
2 changed files with 6 additions and 2 deletions

View File

@ -98,6 +98,11 @@ class TestResponse(requests.Response):
self.status_code = data
def __eq__(self, other):
"""Test if the response is equivalent to another response.
This works by comparing the attribute dictionaries of both TestResponse
instances.
"""
return self.__dict__ == other.__dict__
@property

View File

@ -40,8 +40,7 @@ commands = oslo_debug_helper {posargs}
# D102: Missing docstring in public method
# D103: Missing docstring in public function
# D104: Missing docstring in public package
# D105: Missing docstring in magic method
ignore = D100,D101,D102,D103,D104,D105
ignore = D100,D101,D102,D103,D104
show-source = True
exclude = .venv,.tox,dist,doc,*egg,build,*openstack/common*