Skip to content

Commit ddd1bd3

Browse files
committed
Add formatting checks to CI pipeline
- Add 'format-check' target to Makefile using 'black --check' - Update ci-test target to include format-check step - Now CI includes: lint + format-check + type-check + test + coverage - Complete parity between local 'make ci-test' and GitHub Actions
1 parent 067c5d3 commit ddd1bd3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: help install install-dev test test-unit test-integration coverage lint format type-check clean dev-setup pre-commit run run-test docker-build docker-run run-docker run-docker-dev docker-logs docker-stop
1+
.PHONY: help install install-dev test test-unit test-integration coverage lint format format-check type-check clean dev-setup pre-commit run run-test docker-build docker-run run-docker run-docker-dev docker-logs docker-stop
22

33
# Default target
44
help:
@@ -52,6 +52,9 @@ format:
5252
black weather_mcp/ tests/ main.py
5353
ruff check --fix weather_mcp/ tests/ main.py
5454

55+
format-check:
56+
black --check weather_mcp/ tests/ main.py
57+
5558
type-check:
5659
mypy --ignore-missing-imports weather_mcp/ main.py
5760

@@ -78,7 +81,7 @@ run:
7881
clima-mcp run
7982

8083
# CI/CD friendly commands
81-
ci-test: install-dev lint type-check test coverage
84+
ci-test: install-dev lint format-check type-check test coverage
8285
@echo "All CI checks passed!"
8386

8487
# Docker commands (if you add Docker later)

0 commit comments

Comments
 (0)