Luca Sacchi Ricciardi
60d9228d91
feat(db): T06 create database connection and session management
...
- Add database.py with SQLAlchemy engine and session
- Implement get_db() for FastAPI dependency injection
- Implement init_db() for table creation
- Use SQLAlchemy 2.0 declarative_base() syntax
- Add comprehensive tests with 100% coverage
Tests: 11 passed, 100% coverage
2026-04-07 10:53:13 +02:00
Luca Sacchi Ricciardi
28fde3627e
feat(setup): T05 configure pytest with coverage
...
- Create pytest.ini with:
- Test discovery configuration (testpaths, python_files)
- Asyncio mode settings
- Coverage configuration (>=90% requirement)
- Custom markers (unit, integration, e2e, slow)
- Update conftest.py with:
- pytest_asyncio plugin
- Shared fixtures (project_root, src_path, temp_dir, mock_env_vars)
- Path configuration for imports
- Add test_pytest_config.py with 12 unit tests
- All tests passing (12/12)
Refs: T05
Completes setup phase T01-T05
2026-04-07 09:55:12 +02:00
Luca Sacchi Ricciardi
aece120017
feat(setup): T04 setup configuration files
...
- Create config.py with Pydantic Settings (SettingsConfigDict v2)
- Add all required configuration fields with defaults
- Create .env.example template with all environment variables
- Implement get_settings() with @lru_cache for performance
- Add test_configuration.py with 13 unit tests
- All tests passing (13/13)
Refs: T04
2026-04-07 09:52:33 +02:00
Luca Sacchi Ricciardi
715536033b
feat(setup): T03 create requirements.txt with dependencies
...
- Add requirements.txt with all core dependencies:
- FastAPI 0.104.1, uvicorn 0.24.0
- SQLAlchemy 2.0.23, Alembic 1.12.1
- Pydantic 2.5.0, pydantic-settings 2.1.0
- python-jose 3.3.0, passlib 1.7.4, cryptography 41.0.7
- httpx 0.25.2, pytest 7.4.3, pytest-asyncio 0.21.1, pytest-cov 4.1.0
- Add test_requirements.py with 15 unit tests
- All tests passing (15/15)
Refs: T03
2026-04-07 09:48:15 +02:00
Luca Sacchi Ricciardi
3f0f77cc23
feat(setup): T02 initialize virtual environment and gitignore
...
- Create comprehensive .gitignore with Python, venv, DB exclusions
- Add test_virtual_env_setup.py with 6 unit tests
- Verify Python 3.13.5 compatibility (>= 3.11 required)
- All tests passing (6/6)
Refs: T02
2026-04-07 09:46:21 +02:00
Luca Sacchi Ricciardi
75f40acb17
feat(setup): T01 create project directory structure
...
- Create src/openrouter_monitor/ package structure
- Create models/, routers/, services/, utils/ subpackages
- Create tests/unit/ and tests/integration/ structure
- Create alembic/, docs/, scripts/ directories
- Add test_project_structure.py with 13 unit tests
- All tests passing (13/13)
Refs: T01
2026-04-07 09:44:41 +02:00