diff --git a/cinder/common/config.py b/cinder/common/config.py index f7181723f05..4965fc2904f 100644 --- a/cinder/common/config.py +++ b/cinder/common/config.py @@ -171,7 +171,8 @@ global_opts = [ cfg.StrOpt('auth_strategy', default='keystone', choices=['noauth', 'keystone'], - help='The strategy to use for auth. Supports noauth or keystone.'), + help='The strategy to use for auth. Supports noauth or ' + 'keystone.'), cfg.ListOpt('enabled_backends', help='A list of backend names to use. These backend names ' 'should be backed by a unique [CONFIG] group ' diff --git a/tox.ini b/tox.ini index fb71b5829a7..934f836ddb8 100644 --- a/tox.ini +++ b/tox.ini @@ -43,7 +43,7 @@ commands = {[testenv:py34]commands} [testenv:pep8] commands = - flake8 {posargs} . cinder/common + flake8 {posargs} . # Check that .po and .pot files are valid: bash -c "find cinder -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null" {toxinidir}/tools/config/check_uptodate.sh --checkopts @@ -53,7 +53,7 @@ commands = [testenv:pep8-constraints] install_command = {[testenv:common-constraints]install_command} commands = - flake8 {posargs} . cinder/common + flake8 {posargs} . # Check that .po and .pot files are valid: bash -c "find cinder -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null" {toxinidir}/tools/config/check_uptodate.sh --checkopts @@ -122,7 +122,7 @@ commands = bandit -c tools/bandit.yaml -r cinder -n 5 -ll # E251 unexpected spaces around keyword / parameter equals # reason: no improvement in readability ignore = E251 -exclude = .git,.venv,.tox,dist,tools,doc,common,*egg,build +exclude = .git,.venv,.tox,dist,tools,doc,*egg,build max-complexity=30 [hacking]