Fixing D211 PEP257 violation.

Currently tox ignores D211.
D211: No blank lines allowed before class docstring
This change removes D211 ignore and fix violations.

Change-Id: I79404110896ced7f79999b8c099e2a70b01ec968
This commit is contained in:
Navid Pustchi
2016-05-02 16:36:19 +00:00
parent a7b65bed8f
commit 212cb141b8
3 changed files with 1 additions and 5 deletions

View File

@@ -25,7 +25,6 @@ from keystoneclient.tests.unit import utils
class CMSTest(utils.TestCase, testresources.ResourcedTestCase):
"""Unit tests for the keystoneclient.common.cms module."""
resources = [('examples', client_fixtures.EXAMPLES_RESOURCE)]

View File

@@ -16,7 +16,6 @@ from keystoneclient.i18n import _
class RoleAssignment(base.Resource):
"""Represents an Identity role assignment.
Attributes:
@@ -30,7 +29,6 @@ class RoleAssignment(base.Resource):
class RoleAssignmentManager(base.CrudManager):
"""Manager class for manipulating Identity roles assignments."""
resource_class = RoleAssignment
collection_key = 'role_assignments'

View File

@@ -53,8 +53,7 @@ passenv = OS_*
# D205: Blank line required between one-line summary and description.
# D207: Docstring is under-indented
# D208: Docstring is over-indented
# D211: No blank lines allowed before class docstring
ignore = D100,D101,D102,D103,D104,D105,D200,D202,D203,D204,D205,D207,D208,D211
ignore = D100,D101,D102,D103,D104,D105,D200,D202,D203,D204,D205,D207,D208
show-source = True
exclude = .venv,.tox,dist,doc,*egg,build,*openstack/common*