mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore(pre-commit): Add pyupgrade and pycln hooks (#24197)
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
import logging
|
||||
import urllib.parse
|
||||
from logging.config import fileConfig
|
||||
from typing import List
|
||||
|
||||
from alembic import context
|
||||
from alembic.operations.ops import MigrationScript
|
||||
@@ -85,7 +84,7 @@ def run_migrations_online() -> None:
|
||||
# when there are no changes to the schema
|
||||
# reference: https://alembic.sqlalchemy.org/en/latest/cookbook.html
|
||||
def process_revision_directives( # pylint: disable=redefined-outer-name, unused-argument
|
||||
context: MigrationContext, revision: str, directives: List[MigrationScript]
|
||||
context: MigrationContext, revision: str, directives: list[MigrationScript]
|
||||
) -> None:
|
||||
if getattr(config.cmd_opts, "autogenerate", False):
|
||||
script = directives[0]
|
||||
|
||||
Reference in New Issue
Block a user