Skip to content

Commit

Permalink
chore: use ruff formatter in pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Dec 12, 2023
1 parent 0817ac9 commit 6292302
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand All @@ -27,4 +28,4 @@ repos:
- repo: https://github.com/psf/black
rev: 23.12.0
hooks:
- id: black
- id: black
2 changes: 1 addition & 1 deletion web/migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 6292302

Please sign in to comment.