fix: resolve all MyPy type errors and add poetry.lock for reproducible builds
Some checks failed
CI/CD Pipeline / Build and Push Docker Images (api) (push) Blocked by required conditions
CI/CD Pipeline / Build and Push Docker Images (chat) (push) Blocked by required conditions
CI/CD Pipeline / Build and Push Docker Images (frontend) (push) Blocked by required conditions
CI/CD Pipeline / Build and Push Docker Images (worker) (push) Blocked by required conditions
CI/CD Pipeline / Deploy to Staging (push) Blocked by required conditions
CI/CD Pipeline / Deploy to Production (push) Blocked by required conditions
CI/CD Pipeline / Run Tests (push) Has been cancelled
CI/CD Pipeline / Security Scanning (push) Has been cancelled
CI/CD Pipeline / Lint Code (push) Has been cancelled
CI/CD Pipeline / Generate Documentation (push) Has been cancelled

- Install missing type stubs (types-PyYAML, celery-types, types-redis)
- Fix template_generator.py: add explicit type casts for YAML data
- Fix documentation_tasks.py: add Task type hints for Celery decorators
- Fix api/main.py: add type annotations for AsyncResult and response dicts
- Fix chat/main.py: add type ignore for socketio (no stubs available)
- Remove poetry.lock from .gitignore (needed for Docker builds)
- Add poetry.lock to ensure reproducible dependency installation
- Format code with Black and verify with Ruff

All MyPy checks now pass: 18 errors → 0 errors

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-21 13:33:51 +02:00
parent 12baaa93c4
commit 229d47e291
7 changed files with 8254 additions and 18 deletions

8216
poetry.lock generated Normal file

File diff suppressed because it is too large Load Diff