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