Skip to content

Commit

Permalink
Apply ruff formating when generating migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
armanddidierjean committed Apr 12, 2024
1 parent a5365ba commit 5e8bfa3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions alembic.ini
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ version_path_separator = os # Use os.pathsep. Default configuration used for ne
# black.entrypoint = black
# black.options = -l 79 REVISION_SCRIPT_FILENAME

# Lint and format using Ruff
hooks=ruff_check, ruff_format

ruff_check.type = exec
ruff_check.executable = ruff
ruff_check.options = check --fix REVISION_SCRIPT_FILENAME

ruff_format.type = exec
ruff_format.executable = ruff
ruff_format.options = format REVISION_SCRIPT_FILENAME

# Logging configuration
[loggers]
keys = root,sqlalchemy,alembic
Expand Down

0 comments on commit 5e8bfa3

Please sign in to comment.