Skip to content

Commit 6fe5349

Browse files
Chore: add make run and make lint targets (#144)
- `make run` starts the full stack in the foreground (docker compose up) - `make lint` auto-fixes lint and formatting
1 parent cfdd5d2 commit 6fe5349

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

Makefile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ include scripts/terraform/terraform.mk
33

44
.DEFAULT_GOAL := help
55

6-
.PHONY: clean config dependencies githooks-config githooks-run help test test-lint test-unit _install-uv \
7-
up down restart logs build rebuild run-pacs run-mwl run-listener run-upload ps shell docker-clean \
6+
.PHONY: clean config dependencies githooks-config githooks-run help test test-lint test-unit lint _install-uv \
7+
up down restart logs build rebuild run run-pacs run-mwl run-listener run-upload ps shell docker-clean \
88
package deploy-app \
99
review dev preprod prod
1010
.SILENT: help
@@ -85,11 +85,18 @@ test-unit: # Run unit tests (use ARGS="<args>" for additional options) @Testing
8585
test-integration:
8686
uv run pytest -m "integration" $(ARGS)
8787

88-
test-lint: # Lint files @Testing
88+
test-lint: # Lint files (check only, as CI does) @Testing
8989
uv run ruff check .
9090
uv run ruff format --check .
9191
uv run pyright
9292

93+
lint: # Auto-fix lint and formatting issues @Testing
94+
uv run ruff check --fix .
95+
uv run ruff format .
96+
97+
run: # Start all services in the foreground
98+
docker compose up
99+
93100
up: # Start all services
94101
docker compose up -d
95102

0 commit comments

Comments
 (0)