diff --git a/keystonemiddleware/auth_token/_memcache_crypt.py b/keystonemiddleware/auth_token/_memcache_crypt.py index 9922f6fa..c88418dd 100644 --- a/keystonemiddleware/auth_token/_memcache_crypt.py +++ b/keystonemiddleware/auth_token/_memcache_crypt.py @@ -61,17 +61,13 @@ class InvalidMacError(Exception): class DecryptError(Exception): - """raise when unable to decrypt encrypted data. - - """ + """raise when unable to decrypt encrypted data.""" pass class CryptoUnavailableError(Exception): - """raise when Python Crypto module is not available. - - """ + """raise when Python Crypto module is not available.""" pass diff --git a/keystonemiddleware/ec2_token.py b/keystonemiddleware/ec2_token.py index 83b78097..27375a75 100644 --- a/keystonemiddleware/ec2_token.py +++ b/keystonemiddleware/ec2_token.py @@ -15,10 +15,7 @@ # License for the specific language governing permissions and limitations # under the License. -""" -Starting point for routing EC2 requests. - -""" +"""Starting point for routing EC2 requests.""" import hashlib import logging diff --git a/tox.ini b/tox.ini index c934265b..ad790a98 100644 --- a/tox.ini +++ b/tox.ini @@ -41,8 +41,7 @@ commands = oslo_debug_helper {posargs} # D103: Missing docstring in public function # D104: Missing docstring in public package # D105: Missing docstring in magic method -# D200: One-line docstring should fit on one line with quotes -ignore = D100,D101,D102,D103,D104,D105,D200 +ignore = D100,D101,D102,D103,D104,D105 show-source = True exclude = .venv,.tox,dist,doc,*egg,build,*openstack/common*