Fix D105: Missing docstring in magic method (PEP257)
Change-Id: If4c48aa3f37093295d3d934343c4f28e40c21af0
This commit is contained in:
parent
a2afaa9434
commit
c801117ef4
@ -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
|
||||
|
3
tox.ini
3
tox.ini
@ -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*
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user