From: Rishat Fayzullin Date: Tue, 4 Mar 2025 09:52:07 +0000 (+0300) Subject: Fix linting with ruff provided in alembic.ini by scratch X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1615%2Fhead;p=thirdparty%2Fsqlalchemy%2Falembic.git Fix linting with ruff provided in alembic.ini by scratch Fixes: #1614 --- 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]