[AIRFLOW-XXX] Update Alembic autogenerator to pass pylint (#6216)

This commit is contained in:
Ash Berlin-Taylor 2019-10-01 12:40:43 +01:00 коммит произвёл GitHub
Родитель 844bbad22a
Коммит 3a90d78046
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -17,9 +17,10 @@
# specific language governing permissions and limitations
# under the License.
from alembic import context
from logging.config import fileConfig
from alembic import context
from airflow import settings
from airflow import models

Просмотреть файл

@ -6,9 +6,9 @@
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@ -24,19 +24,22 @@ Create Date: ${create_date}
"""
from alembic import op
import sqlalchemy as sa
${imports if imports else ""}
# revision identifiers, used by Alembic.
revision = ${repr(up_revision)}
down_revision = ${repr(down_revision)}
branch_labels = ${repr(branch_labels)}
depends_on = ${repr(depends_on)}
from alembic import op
import sqlalchemy as sa
${imports if imports else ""}
def upgrade():
"""Apply ${message}"""
${upgrades if upgrades else "pass"}
def downgrade():
"""Unapply ${message}"""
${downgrades if downgrades else "pass"}