Cleanup several pep8 warnings

The following pep8/flake8 warnings are no longer
being suppressed:

 E101 indentation contains mixed spaces and tabs
 E203 whitespace before ':'
 E211 whitespace before '('
 E228 missing whitespace around modulo operator
 E251 unexpected spaces around keyword / parameter equal
 E302 expected 2 blank lines, found 1
 E303 too many blank lines

Story: 2003499
Task: 26190

Change-Id: I8df57783417e4372a008f876365f9c24d2c0cb4b
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
This commit is contained in:
Al Bailey 2018-09-05 11:38:38 -05:00
parent 250fb4dc31
commit 3a419fef8d
8 changed files with 128 additions and 133 deletions

View File

@ -6,6 +6,7 @@
# flake8: noqa
#
class _NfvVimRecordType(object):
"""
NFV-VIM Record Type Constants

View File

@ -56,6 +56,7 @@ if not os.path.exists(logDir):
call("cp nfv-vim.log nfv-vim.log.[0-9] nfv-vim.log.[0-9][0-9] nfv-vim.log.[0-9].gz nfv-vim.log.[0-9][0-9].gz logs/", shell=True)
call("gunzip logs/nfv-vim.log.[0-9].gz logs/nfv-vim.log.[0-9][0-9].gz", shell=True)
class Parser:
def __init__(self):
self.proc="" # Name of process being read

View File

@ -70,6 +70,7 @@ group=[]
graphName=""
plotType=""
def helpMessage():
print("\n"+"-"*120)
print("NFV-VIM Histogram Graphing Script\n")
@ -363,7 +364,6 @@ def setFilename(graphName):
return graphName
print("Welcome to plotter, type --help for information")
# Checks that plotly is installed, otherwise graphs cannot be generated.
plotCheck=commands.getstatusoutput("pip list | grep plotly")

View File

@ -291,7 +291,6 @@ class TestInstance:
'compute-0')
assert 300 == instance.max_live_migrate_wait_in_secs
def test_live_migration_completion_timeout_from_image(self):
create_instance_type('small')
create_image('image_0',

View File

@ -21,6 +21,7 @@
#
#
class ProxyException(Exception):
"""Base Exception
"""

View File

@ -26,7 +26,6 @@ commands =
[pep8]
# Temporarily ignoring these warnings
# E101 indentation contains mixed spaces and tabs
# E116 unexpected indentation (comment)
# E121 continuation line under-indented for hanging indent
# E122 continuation line missing indentation or outdented
@ -36,22 +35,16 @@ commands =
# E127 continuation line over-indented for visual indent
# E128 continuation line under-indented for visual indent
# E129 visually indented line with same indent as next logical line
# E203 whitespace before ':'
# E211 whitespace before '('
# E225 missing whitespace around operator
# E226 missing whitespace around arithmetic operator
# E228 missing whitespace around modulo operator
# E231 missing whitespace after ':'
# E241 multiple spaces after
# E261 at least two spaces before inline comment
# E265 block comment should start with '# '
# E251 unexpected spaces around keyword / parameter equals
# E302 expected 2 blank lines, found 1
# E303 too many blank lines
# E501 line too long
# E712 comparison to bool should be reworded
ignore = E101,E116,E121,E123,E122,E124,E126,E127,E128,E129,E203,E211,E225,E226,E228,E231,E241,E251,E261,E265,E302,E303,E501,E712
ignore = E116,E121,E122,E123,E124,E126,E127,E128,E129,E225,E226,E231,E241,E261,E265,E501,E712
[testenv:pep8]
usedevelop = False