Fixing D208 PEP257 violation.
Currently tox ignores D208. D208: Docstring is over-indented. This change removes D208 ignore and fix violations. Change-Id: Ifec21c7602468b2a60727b64d27e7f14d765638c
This commit is contained in:
@@ -20,8 +20,8 @@ class Region(base.Resource):
|
||||
* id: a string that identifies the region.
|
||||
* description: a string that describes the region. Optional.
|
||||
* parent_region_id: string that is the id field for a pre-existing
|
||||
region in the backend. Allows for hierarchical region
|
||||
organization
|
||||
region in the backend. Allows for hierarchical
|
||||
region organization.
|
||||
* enabled: determines whether the endpoint appears in the catalog.
|
||||
Defaults to True
|
||||
"""
|
||||
@@ -38,14 +38,13 @@ class RegionManager(base.CrudManager):
|
||||
parent_region=None, **kwargs):
|
||||
"""Create a Catalog region.
|
||||
|
||||
:param id: a string that identifies the region. If not specified
|
||||
a unique identifier will be assigned to the region.
|
||||
:param id: a string that identifies the region. If not specified a
|
||||
unique identifier will be assigned to the region.
|
||||
:param description: a string that describes the region.
|
||||
:param parent_region: string that is the id field for a
|
||||
pre-existing region in the backend. Allows for hierarchical
|
||||
:param parent_region: string that is the id field for a pre-existing
|
||||
region in the backend. Allows for hierarchical
|
||||
region organization.
|
||||
:param enabled: determines whether the endpoint appears in the
|
||||
catalog.
|
||||
:param enabled: determines whether the endpoint appears in the catalog.
|
||||
|
||||
"""
|
||||
return super(RegionManager, self).create(
|
||||
@@ -71,11 +70,10 @@ class RegionManager(base.CrudManager):
|
||||
|
||||
:param region: a string that identifies the region.
|
||||
:param description: a string that describes the region.
|
||||
:param parent_region: string that is the id field for a
|
||||
pre-existing region in the backend. Allows for hierarchical
|
||||
:param parent_region: string that is the id field for a pre-existing
|
||||
region in the backend. Allows for hierarchical
|
||||
region organization.
|
||||
:param enabled: determines whether the endpoint appears in the
|
||||
catalog.
|
||||
:param enabled: determines whether the endpoint appears in the catalog.
|
||||
|
||||
"""
|
||||
return super(RegionManager, self).update(
|
||||
|
3
tox.ini
3
tox.ini
@@ -52,8 +52,7 @@ passenv = OS_*
|
||||
# D204: 1 blank required after class docstring
|
||||
# D205: Blank line required between one-line summary and description.
|
||||
# D207: Docstring is under-indented
|
||||
# D208: Docstring is over-indented
|
||||
ignore = D100,D101,D102,D103,D104,D105,D200,D202,D203,D204,D205,D207,D208
|
||||
ignore = D100,D101,D102,D103,D104,D105,D200,D202,D203,D204,D205,D207
|
||||
show-source = True
|
||||
exclude = .venv,.tox,dist,doc,*egg,build,*openstack/common*
|
||||
|
||||
|
Reference in New Issue
Block a user