Skip to content

v0.4.1 - Introduce CodeCov & Refactoring

Choose a tag to compare

@github-actions github-actions released this 21 Jan 06:54
· 243 commits to master since this release

简体中文 (Simplified Chinese)

v0.4.1 是一个重点维护版本,着重提升了代码质量和系统稳定性。我们不仅修复了雀魂平台在特定场景下的手牌不同步 Bug,还对后端代码进行了大规模的类型注解覆盖和导入路径统一。

⚡ 改进与优化

  • 代码质量与重构:
    • 类型安全: 全面添加了 Python 类型注解 (Type Hints),显著提升了代码的可读性和开发时的类型检查覆盖率。
    • 导入统一: 统一了项目中的 Import 风格和路径,消除循环依赖隐患,结构更清晰。
  • 前端体验:
    • 状态通知优化: 优化了前端的状态通知逻辑,现在的连接状态和错误提示更加准确及时。
  • CI/CD 与工程化:
    • Codecov 配置: 更新了 Codecov 配置文件,修复了 Windows CI 环境下的兼容性问题,并优化了后端覆盖率统计规则。
    • 依赖更新: 跟进并升级了多个核心依赖库(包括 GitHub Actions 和 npm 依赖)。

🐛 问题修复

  • 雀魂平台:
    • 修复了拔北、鸣牌时手牌和自摸牌更新不准确的问题。

English

v0.4.1 is a key maintenance release focusing on code quality and system stability. We fixed a critical hand synchronization bug on the Majsoul platform and performed a large-scale codebase refactor to enforce type annotations and unified imports.

⚡ Improvements

  • Code Quality & Refactoring:
    • Type Safety: Comprehensive addition of Python type annotations across the backend, significantly improving readability and static analysis coverage.
    • Unified Imports: Standardized import paths and styles throughout the project, eliminating potential circular dependencies.
  • Frontend Experience:
    • Status Notifications: Optimized frontend status notification logic for more accurate and timely connection/error feedback.
  • CI/CD & Engineering:
    • Codecov Config: Updated Codecov configuration to resolve Windows CI compatibility issues and refine backend coverage statistics.
    • Dependency Updates: Upgraded multiple core dependencies (including GitHub Actions and npm packages).

🐛 Bug Fixes

  • Majsoul Platform:
    • Fixed issues with updating hand tiles and drawn tiles during Kita (North extraction) and Call (Melding) actions.

Full Changelog: v0.4.0...v0.4.1