🚚 — Set Alembic’s version_locations to new location

This commit is contained in:
Luc Didry 2024-04-08 08:45:21 +02:00
parent ad5a90c5e7
commit a9b7b8f750
No known key found for this signature in database
GPG key ID: EA868E12D0257E3C
2 changed files with 5 additions and 5 deletions

View file

@ -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)

View file

@ -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