Skip to content

Commit 322dc14

Browse files
committed
gwy: ci: added pre-commit make target
1 parent 5f54ea9 commit 322dc14

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

gateway/makefile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ build:
2020
@COMPOSE_FILE=$(COMPOSE_FILE) docker compose --env-file $(ENV_FILE) pull --ignore-buildable
2121
@COMPOSE_FILE=$(COMPOSE_FILE) docker compose --env-file $(ENV_FILE) build $(ARGS)
2222

23-
up:
24-
@echo "Starting sds-gateway"
25-
@COMPOSE_FILE=$(COMPOSE_FILE) docker compose --env-file $(ENV_FILE) up -d $(ARGS)
23+
down:
24+
@echo "Stopping sds-gateway"
25+
@COMPOSE_FILE=$(COMPOSE_FILE) docker compose --env-file $(ENV_FILE) down $(ARGS)
2626

2727
logs:
2828
@echo "Showing sds-gateway logs…"
@@ -32,9 +32,8 @@ logs-once:
3232
@echo "Showing gateway logs once…"
3333
@COMPOSE_FILE=$(COMPOSE_FILE) docker compose --env-file $(ENV_FILE) logs $(ARGS)
3434

35-
down:
36-
@echo "Stopping sds-gateway"
37-
@COMPOSE_FILE=$(COMPOSE_FILE) docker compose --env-file $(ENV_FILE) down $(ARGS)
35+
pre-commit:
36+
uv run --dev pre-commit run --all-files
3837

3938
restart:
4039
@echo "Restarting sds-gateway"
@@ -44,3 +43,7 @@ test:
4443
@echo "Running tests"
4544
@COMPOSE_FILE=$(COMPOSE_FILE) docker compose --env-file $(ENV_FILE) run $(APP_CONTAINER) pytest
4645
@COMPOSE_FILE=$(COMPOSE_FILE) docker compose --env-file $(ENV_FILE) run $(APP_CONTAINER) python manage.py test --force-color
46+
47+
up:
48+
@echo "Starting sds-gateway"
49+
@COMPOSE_FILE=$(COMPOSE_FILE) docker compose --env-file $(ENV_FILE) up -d $(ARGS)

0 commit comments

Comments
 (0)