From 212cb141b808e71cb09899797dc59345ec640da2 Mon Sep 17 00:00:00 2001 From: Navid Pustchi Date: Mon, 2 May 2016 16:36:19 +0000 Subject: [PATCH] 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 --- keystoneclient/tests/unit/test_cms.py | 1 - keystoneclient/v3/role_assignments.py | 2 -- tox.ini | 3 +-- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/keystoneclient/tests/unit/test_cms.py b/keystoneclient/tests/unit/test_cms.py index dc1d0d15..11078aee 100644 --- a/keystoneclient/tests/unit/test_cms.py +++ b/keystoneclient/tests/unit/test_cms.py @@ -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)] diff --git a/keystoneclient/v3/role_assignments.py b/keystoneclient/v3/role_assignments.py index edee0c98..71ae2c25 100644 --- a/keystoneclient/v3/role_assignments.py +++ b/keystoneclient/v3/role_assignments.py @@ -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' diff --git a/tox.ini b/tox.ini index be6a5297..58ffe462 100644 --- a/tox.ini +++ b/tox.ini @@ -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*