From 00ee192a689dfa8226a3b9b061256f68d2c1bc1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BD=D0=B0zavr?= Date: Thu, 21 Mar 2024 21:05:31 +0300 Subject: [PATCH] Fix use ruff formatter --- alembic.ini | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/alembic.ini b/alembic.ini index 6bc8b36..a59ec2b 100644 --- a/alembic.ini +++ b/alembic.ini @@ -62,11 +62,11 @@ output_encoding = utf-8 # post_write_hooks defines scripts or Python functions that are run # on newly generated revision scripts. See the documentation for further # detail and examples -hooks = black,ruff +hooks = formatter,ruff -black.type = console_scripts -black.entrypoint = black -black.options = -l 99 REVISION_SCRIPT_FILENAME +formatter.type = exec +formatter.executable = ruff +formatter.options = format REVISION_SCRIPT_FILENAME ruff.type = exec ruff.executable = ruff