mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2026-02-10 18:34:20 +01:00
fix(lint): improved type checking and code quality (77% error reduction)
This commit is contained in:
parent
3c45a31aa3
commit
83fe527979
37 changed files with 423 additions and 303 deletions
|
|
@ -3,9 +3,12 @@
|
|||
## [Unreleased]
|
||||
|
||||
### Summary
|
||||
Web UI improvements with Tailwind CSS migration, TypeScript conversion, component library, and optional card image caching for faster performance and better maintainability.
|
||||
Web UI improvements with Tailwind CSS migration, TypeScript conversion, component library, enhanced code quality standards, and optional card image caching for faster performance and better maintainability.
|
||||
|
||||
### 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
|
||||
|
|
@ -48,6 +51,9 @@ Web UI improvements with Tailwind CSS migration, TypeScript conversion, componen
|
|||
- Hot reload enabled for templates and static files
|
||||
- Volume mounts for rapid iteration without rebuilds
|
||||
- **Template Modernization**: Migrated templates to use component system
|
||||
- **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
|
||||
- **Intelligent Synergy Builder**: Analyze multiple builds and create optimized "best-of" deck
|
||||
- Scores cards by frequency (50%), EDHREC rank (25%), and theme tags (25%)
|
||||
- 10% bonus for cards appearing in 80%+ of builds
|
||||
|
|
@ -72,7 +78,10 @@ Web UI improvements with Tailwind CSS migration, TypeScript conversion, componen
|
|||
_None_
|
||||
|
||||
### Fixed
|
||||
_None_
|
||||
- **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
|
||||
|
||||
### Performance
|
||||
- Hot reload for CSS/template changes (no Docker rebuild needed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue