mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
🚚 — Set Alembic’s version_locations to new location
This commit is contained in:
parent
ad5a90c5e7
commit
a9b7b8f750
2 changed files with 5 additions and 5 deletions
6
Makefile
6
Makefile
|
@ -5,7 +5,7 @@ ORANGE=\033[0;33m
|
||||||
BLUE=\033[0;34m
|
BLUE=\033[0;34m
|
||||||
NC=\033[0m # No Color
|
NC=\033[0m # No Color
|
||||||
|
|
||||||
.PHONY: test djlint pylint
|
.PHONY: test lint djlint pylint ruff
|
||||||
|
|
||||||
venv: ## Create the venv
|
venv: ## Create the venv
|
||||||
python3 -m venv 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
|
venv/bin/djlint --ignore=H030,H031,H006 --profile jinja --lint argos/server/templates/*html
|
||||||
pylint: venv ## Runs pylint on the code
|
pylint: venv ## Runs pylint on the code
|
||||||
venv/bin/pylint argos
|
venv/bin/pylint argos
|
||||||
pylint-alembic: venv ## Runs pylint on alembic migration files
|
lint: djlint pylint ruff
|
||||||
venv/bin/pylint --disable invalid-name,no-member alembic/versions/*.py
|
|
||||||
lint: djlint pylint pylint-alembic ruff
|
|
||||||
help:
|
help:
|
||||||
@python3 -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
|
@python3 -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,11 @@
|
||||||
script_location = alembic
|
script_location = alembic
|
||||||
prepend_sys_path = .
|
prepend_sys_path = .
|
||||||
|
|
||||||
version_path_separator = os
|
version_path_separator = os
|
||||||
sqlalchemy.url = sqlite:////tmp/argos.db
|
sqlalchemy.url = sqlite:////tmp/argos.db
|
||||||
|
|
||||||
|
version_locations = %(here)s/argos/server/migrations/versions
|
||||||
|
|
||||||
# Logging configuration
|
# Logging configuration
|
||||||
[loggers]
|
[loggers]
|
||||||
keys = root,sqlalchemy,alembic
|
keys = root,sqlalchemy,alembic
|
||||||
|
|
Loading…
Reference in a new issue