Update Makefile

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Russell 2025-08-10 20:54:43 -04:00 committed by GitHub
parent 45a8f60cd2
commit 092ebd0ee0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -155,13 +155,18 @@ test-cov: dev-setup
# Format and lint code
.PHONY: format lint
format lint: dev-setup
@echo "🎨 Formatting and linting code..."
venv/bin/black . || echo "⚠️ black formatting failed"
venv/bin/isort . || echo "⚠️ isort import sorting failed"
venv/bin/flake8 . || echo "⚠️ Linting issues found"
.PHONY: format
format: dev-setup
@echo "🎨 Formatting code..."
venv/bin/black .
venv/bin/isort .
.PHONY: lint
lint: dev-setup
@echo "🔍 Linting code..."
venv/bin/black --check .
venv/bin/isort --check-only .
venv/bin/flake8 .
# Install development dependencies
.PHONY: dev-setup
dev-setup: venv