diff options
author | Dmitry Tantsur <dtantsur@protonmail.com> | 2020-03-28 12:00:14 +0100 |
---|---|---|
committer | Riccardo Pittau <elfosardo@gmail.com> | 2020-03-31 10:16:54 +0200 |
commit | a3d7d73a69f85b396aad30610294d5ea246a0df7 (patch) | |
tree | 22240a462f0986eba38f919b25665318fb929fdd /ironic/db | |
parent | 4829df2966190595feb69623792678816bdcd6a2 (diff) | |
download | ironic-a3d7d73a69f85b396aad30610294d5ea246a0df7.tar.gz |
Bump hacking to 3.0.0
The new version enables a lot of standard flake8 checks. Some of them
are temporary disabled to reduce the scope of this patch:
* Complexity check requires a few functions to be rewritten (apparently,
it was not enabled previously).
* Indentation check failures are numerous and potentially contradictive.
These checks will be enabled in follow-ups.
W606 is removed from excludes since we no longer hit it.
Change-Id: I1e5a6f8e5e90c55cfc6f740b26c30196512d3be3
Diffstat (limited to 'ironic/db')
-rw-r--r-- | ironic/db/sqlalchemy/alembic/versions/1e15e7122cc9_add_extra_column_to_deploy_templates.py | 6 | ||||
-rw-r--r-- | ironic/db/sqlalchemy/alembic/versions/cd2c80feb331_add_node_retired_field.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ironic/db/sqlalchemy/alembic/versions/1e15e7122cc9_add_extra_column_to_deploy_templates.py b/ironic/db/sqlalchemy/alembic/versions/1e15e7122cc9_add_extra_column_to_deploy_templates.py index 854b9c2e7..849b17069 100644 --- a/ironic/db/sqlalchemy/alembic/versions/1e15e7122cc9_add_extra_column_to_deploy_templates.py +++ b/ironic/db/sqlalchemy/alembic/versions/1e15e7122cc9_add_extra_column_to_deploy_templates.py @@ -18,13 +18,13 @@ Create Date: 2019-02-26 15:08:18.419157 """ +from alembic import op +import sqlalchemy as sa + # revision identifiers, used by Alembic. revision = '1e15e7122cc9' down_revision = '2aac7e0872f6' -from alembic import op -import sqlalchemy as sa - def upgrade(): op.add_column('deploy_templates', diff --git a/ironic/db/sqlalchemy/alembic/versions/cd2c80feb331_add_node_retired_field.py b/ironic/db/sqlalchemy/alembic/versions/cd2c80feb331_add_node_retired_field.py index 027e7659d..5bfa31e78 100644 --- a/ironic/db/sqlalchemy/alembic/versions/cd2c80feb331_add_node_retired_field.py +++ b/ironic/db/sqlalchemy/alembic/versions/cd2c80feb331_add_node_retired_field.py @@ -18,13 +18,13 @@ Create Date: 2020-01-16 12:51:13.866882 """ +from alembic import op +import sqlalchemy as sa + # revision identifiers, used by Alembic. revision = 'cd2c80feb331' down_revision = 'ce6c4b3cf5a2' -from alembic import op -import sqlalchemy as sa - def upgrade(): op.add_column('nodes', sa.Column('retired', sa.Boolean(), nullable=True, |