From 92342fac19adf62a148ab937d1dc82417adb6e17 Mon Sep 17 00:00:00 2001 From: Rishat Fayzullin Date: Tue, 4 Mar 2025 12:52:07 +0300 Subject: [PATCH] Fix linting with ruff provided in alembic.ini by scratch Fixes: #1614 --- alembic/templates/async/alembic.ini.mako | 2 +- alembic/templates/generic/alembic.ini.mako | 2 +- alembic/templates/multidb/alembic.ini.mako | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/alembic/templates/async/alembic.ini.mako b/alembic/templates/async/alembic.ini.mako index f97e2d66..7ffd7926 100644 --- a/alembic/templates/async/alembic.ini.mako +++ b/alembic/templates/async/alembic.ini.mako @@ -79,7 +79,7 @@ sqlalchemy.url = driver://user:pass@localhost/dbname # hooks = ruff # ruff.type = exec # ruff.executable = %(here)s/.venv/bin/ruff -# ruff.options = --fix REVISION_SCRIPT_FILENAME +# ruff.options = check --fix REVISION_SCRIPT_FILENAME # Logging configuration [loggers] diff --git a/alembic/templates/generic/alembic.ini.mako b/alembic/templates/generic/alembic.ini.mako index 4fc5d01a..3e211d0d 100644 --- a/alembic/templates/generic/alembic.ini.mako +++ b/alembic/templates/generic/alembic.ini.mako @@ -81,7 +81,7 @@ sqlalchemy.url = driver://user:pass@localhost/dbname # hooks = ruff # ruff.type = exec # ruff.executable = %(here)s/.venv/bin/ruff -# ruff.options = --fix REVISION_SCRIPT_FILENAME +# ruff.options = check --fix REVISION_SCRIPT_FILENAME # Logging configuration [loggers] diff --git a/alembic/templates/multidb/alembic.ini.mako b/alembic/templates/multidb/alembic.ini.mako index 116bd4a8..00316456 100644 --- a/alembic/templates/multidb/alembic.ini.mako +++ b/alembic/templates/multidb/alembic.ini.mako @@ -86,7 +86,7 @@ sqlalchemy.url = driver://user:pass@localhost/dbname2 # hooks = ruff # ruff.type = exec # ruff.executable = %(here)s/.venv/bin/ruff -# ruff.options = --fix REVISION_SCRIPT_FILENAME +# ruff.options = check --fix REVISION_SCRIPT_FILENAME # Logging configuration [loggers] -- 2.47.2