diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ccc659e7..d4c704e7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,11 @@ --- repos: + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: 'v0.1.7' + hooks: + - id: ruff + args: [--fix, --exit-non-zero-on-fix] + - id: ruff-format - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 hooks: @@ -14,11 +20,6 @@ repos: hooks: - id: reorder-python-imports args: ["--application-directories", "flaskr"] - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.1.7' - hooks: - - id: ruff - args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/asottile/pyupgrade rev: v3.15.0 hooks: @@ -27,4 +28,4 @@ repos: - repo: https://github.com/psf/black rev: 23.12.0 hooks: - - id: black + - id: black diff --git a/web/migrations/env.py b/web/migrations/env.py index 48a6609b..fc731de0 100644 --- a/web/migrations/env.py +++ b/web/migrations/env.py @@ -79,7 +79,7 @@ def process_revision_directives(context, revision, directives): connection=connection, target_metadata=target_metadata, process_revision_directives=process_revision_directives, - **current_app.extensions["migrate"].configure_args + **current_app.extensions["migrate"].configure_args, ) with context.begin_transaction():