feat: project bootstrap and structure

Sprint 1 initialization:
- Project directory structure (portfolio_app/, tests/, dbt/, data/, scripts/)
- CLAUDE.md with AI assistant context
- pyproject.toml with all dependencies
- docker-compose.yml for PostgreSQL 16 + PostGIS
- Makefile with standard targets
- Pre-commit configuration (ruff, mypy)
- Environment template (.env.example)
- Error handling foundation (PortfolioError hierarchy)
- Test configuration (conftest.py, pytest config)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-11 13:49:28 -05:00
parent 01a0984333
commit c7e9b88adb
38 changed files with 709 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
"""Error handling for the portfolio application."""
from .exceptions import LoadError, ParseError, PortfolioError, ValidationError
__all__ = ["PortfolioError", "ParseError", "ValidationError", "LoadError"]

View File

@@ -0,0 +1,17 @@
"""Custom exceptions for the portfolio application."""
class PortfolioError(Exception):
"""Base exception for all portfolio errors."""
class ParseError(PortfolioError):
"""PDF/CSV parsing failed."""
class ValidationError(PortfolioError):
"""Pydantic or business rule validation failed."""
class LoadError(PortfolioError):
"""Database load operation failed."""