aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2023-09-04 17:12:51 +0100
committerGravatar Joe Banks <[email protected]>2023-09-04 17:12:51 +0100
commit62ce31b109ac1e7942809a5d0a25d1a046475b98 (patch)
tree31d79244ed4e304007728fec950b05392725fd2b
parentAdd pre-commit step to linting workflow (diff)
Add alembic hook to format migrations on generation
-rw-r--r--alembic.ini9
1 files changed, 4 insertions, 5 deletions
diff --git a/alembic.ini b/alembic.ini
index e721224..90f2a13 100644
--- a/alembic.ini
+++ b/alembic.ini
@@ -40,11 +40,10 @@ script_location = alembic
# on newly generated revision scripts. See the documentation for further
# detail and examples
-# format using "black" - use the console_scripts runner, against the "black" entrypoint
-# hooks=black
-# black.type=console_scripts
-# black.entrypoint=black
-# black.options=-l 79
+hooks = ruff
+ruff.type = exec
+ruff.executable = ruff
+ruff.options = check --fix-only REVISION_SCRIPT_FILENAME
# Logging configuration
[loggers]