From a9b7b8f750f1b33e575f85a796b4f8be4069d037 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Mon, 8 Apr 2024 08:45:21 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20=E2=80=94=20Set=20Alembic?= =?UTF-8?q?=E2=80=99s=20version=5Flocations=20to=20new=20location?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 6 ++---- alembic.ini | 4 +++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 94757f4..56187e3 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ ORANGE=\033[0;33m BLUE=\033[0;34m NC=\033[0m # No Color -.PHONY: test djlint pylint +.PHONY: test lint djlint pylint ruff venv: ## Create the venv python3 -m venv venv @@ -27,9 +27,7 @@ djlint: venv ## Format the templates venv/bin/djlint --ignore=H030,H031,H006 --profile jinja --lint argos/server/templates/*html pylint: venv ## Runs pylint on the code venv/bin/pylint argos -pylint-alembic: venv ## Runs pylint on alembic migration files - venv/bin/pylint --disable invalid-name,no-member alembic/versions/*.py -lint: djlint pylint pylint-alembic ruff +lint: djlint pylint ruff help: @python3 -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST) diff --git a/alembic.ini b/alembic.ini index afb61ac..4c84fe0 100644 --- a/alembic.ini +++ b/alembic.ini @@ -2,9 +2,11 @@ script_location = alembic prepend_sys_path = . -version_path_separator = os +version_path_separator = os sqlalchemy.url = sqlite:////tmp/argos.db +version_locations = %(here)s/argos/server/migrations/versions + # Logging configuration [loggers] keys = root,sqlalchemy,alembic