Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,9 @@ mlflow_tracking_uri.txt

# Large trained model files (can be regenerated with train_and_save_models.py)
models/stack_*.pkl # Exclude large stack models but keep ensemble model

# Remove Mac file
*.DS_Store

# Do not include pre-commit-output.txt
*.pre-commit-output.txt
24 changes: 21 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Author: AI Assistant
# Date: 2025-07-14

.PHONY: help install format lint test run train-models dash stop-dash
.PHONY: help install format lint typecheck security check-all test run train-models dash stop-dash

# Default target
help:
Expand All @@ -12,7 +12,10 @@ help:
@echo "Available targets:"
@echo " install - Install dependencies using uv"
@echo " format - Format code with ruff"
@echo " lint - Lint code with ruff"
@echo " lint - Lint code with ruff (includes format check)"
@echo " typecheck - Type check with mypy"
@echo " security - Security check with bandit"
@echo " check-all - Run all code quality checks (lint, typecheck, security)"
@echo " test - Run tests"
@echo " run - Run the modular pipeline"
@echo " train-models - Train and save ML models"
Expand All @@ -32,7 +35,22 @@ format:

lint:
@echo "🔍 Linting code with ruff..."
uv run ruff check src/ dash_app/ tests/ scripts/ --output-format=github
uv run ruff check . --fix
uv run ruff format --check .

# Type checking
typecheck:
@echo "🔎 Type checking with mypy..."
uv run mypy src/ --ignore-missing-imports

# Security checking
security:
@echo "🔒 Security checking with bandit..."
uv run bandit -r src/ -f json

# Run all quality checks
check-all: lint typecheck security
@echo "✅ All code quality checks completed!"

# Testing
test:
Expand Down
Loading