fix(lint): improved type checking and code quality (77% error reduction)

This commit is contained in:
matt 2025-10-31 08:18:09 -07:00
parent 3c45a31aa3
commit 83fe527979
37 changed files with 423 additions and 303 deletions

View file

@ -9,6 +9,9 @@ This format follows Keep a Changelog principles and aims for Semantic Versioning
## [Unreleased]
### Added
- **Code Quality Improvements**: Enhanced type checking and code quality standards
- Configured gradual strict mode for Python type checking
- Created automated utilities for maintaining clean codebase
- **Card Image Caching**: Optional local image cache for faster card display
- Downloads card images from Scryfall bulk data (respects API guidelines)
- Graceful fallback to Scryfall API for uncached images
@ -73,6 +76,15 @@ This format follows Keep a Changelog principles and aims for Semantic Versioning
### Changed
- Migrated 5 templates to new component system (home, 404, 500, setup, commanders)
- **Type Checking Configuration**: Adjusted mypy settings for better developer experience
- Enabled gradual strict mode for incremental type safety improvements
- Configured per-module strict checks for new code
### Fixed
- **Code Quality**: Resolved numerous type checking warnings and improved code maintainability
- Fixed critical type annotation bugs
- Removed outdated type ignore comments
- Corrected dictionary type definitions
### Removed
_None_