Resolve and enable E265 pep8 issue

E265 block comment should start with '# '

Change-Id: I1a8b971776deb8b05b84be169571b9f1e573d2ba
This commit is contained in:
Ekaterina Chernova 2015-02-04 17:57:00 +03:00
parent 87a63bf24e
commit 017d25f49e
15 changed files with 33 additions and 36 deletions

View File

@ -253,7 +253,7 @@ def upgrade():
)
_create_default_categories(op)
### end Alembic commands ###
# end Alembic commands #
def downgrade():
@ -273,4 +273,4 @@ def downgrade():
op.drop_table('category')
op.drop_table('tag')
op.drop_table('environment')
### end Alembic commands ###
# end Alembic commands #

View File

@ -40,10 +40,10 @@ def upgrade():
'package',
sa.Column('supplier', sa.types.Text())
)
### end Alembic commands ###
# end Alembic commands #
def downgrade():
op.drop_column('package', 'supplier')
op.drop_column('package', 'supplier_logo')
### end Alembic commands ###
# end Alembic commands #

View File

@ -89,4 +89,4 @@ def downgrade():
)
op.drop_table('task')
### end Alembic commands ###
# end Alembic commands #

View File

@ -98,7 +98,7 @@ def upgrade():
'class_definition', 'package',
['package_id'], ['id'])
### end Alembic commands ###
# end Alembic commands #
def downgrade():
@ -166,4 +166,4 @@ def downgrade():
'class_definition', 'package',
['package_id'], ['id'])
### end Alembic commands ###
# end Alembic commands #

View File

@ -56,7 +56,7 @@ class EnvironmentServices(object):
:param environment_id: Id of environment for which we checking status.
:return: Environment status
"""
#Deploying: there is at least one valid session with status `deploying`
# Deploying: there is at least one valid session with status deploying
session_list = sessions.SessionServices.get_sessions(environment_id)
has_opened = False
for session in session_list:

View File

@ -82,8 +82,8 @@ class SessionServices(object):
# if other session is deploying now current session is invalid
unit = db_session.get_session()
#if environment version is higher then version on which current session
#is created then other session was already deployed
# if environment version is higher then version on which current
# session is created then other session was already deployed
current_env = unit.query(models.Environment).\
get(session.environment_id)
if current_env.version > session.version:
@ -109,8 +109,6 @@ class SessionServices(object):
:param token: auth token that is going to be used by orchestration
"""
#Set X-Auth-Token for conductor
deleted = session.description['Objects'] is None
action_name = None if deleted else 'deploy'
actions.ActionServices.submit_task(

View File

@ -39,13 +39,12 @@ commands = oslo-config-generator --config-file etc/oslo-config-generator/murano.
[flake8]
# H233 Python 3.x incompatible use of print operator
# E265 block comment should start with '# '
# H307 like imports should be grouped together
# H405 Multi line docstring summary not separated with an empty line
# H702 Argument to _ must be just a string
# H904 Wrap long lines in parentheses instead of a backslash
ignore = H233,H307,E265,H405,H702,H904
ignore = H233,H307,H405,H702,H904
show-source = true
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools