Skip to content

Conversation

@jamiesun
Copy link
Contributor

描述

变更类型

  • Bug 修复
  • 新功能
  • 代码重构
  • 文档更新
  • 性能优化
  • 测试改进
  • 其他 (请说明):

测试

  • 已通过单元测试
  • 已通过集成测试
  • 已手动测试

检查清单

  • 代码遵循项目的代码风格
  • 已添加必要的测试
  • 所有测试通过
  • 已更新相关文档
  • 变更日志已更新(如适用)

相关 Issue

额外说明

jamiesun and others added 6 commits October 27, 2025 16:30
- Changed test job name from 'Test Python' to 'test' to match expected status checks
- Changed lint job name from 'Code Quality' to 'lint'
- Changed build job name from 'Build Package' to 'build'
- Removed continue-on-error from lint checks to ensure failures are properly reported

This ensures the status check names match the branch protection requirements:
- test (3.10), test (3.11), test (3.12), test (3.13)
- lint
- build
- Reformatted 21 Python files with black
- Fixed import ordering with isort

This ensures the lint CI check will pass.
- Add pre-commit configuration with black, isort, and ruff
- Add auto-format GitHub Actions workflow to auto-fix PRs
- Update pyproject.toml with tool configurations
- Add Makefile commands for pre-commit management
- Add comprehensive CODE_QUALITY.md documentation

Benefits:
- Automatically formats code on every commit
- Auto-fixes formatting issues in PRs via GitHub Actions
- Ensures consistent code style across the project
- Reduces manual formatting work

Usage:
  make pre-commit-install  # One-time setup
  git commit               # Auto-formats on commit
@github-actions
Copy link
Contributor

✨ Code has been automatically formatted with black and isort.

@jamiesun jamiesun marked this pull request as draft October 27, 2025 09:11
@jamiesun jamiesun marked this pull request as ready for review October 27, 2025 09:11
@jamiesun jamiesun marked this pull request as draft October 27, 2025 09:14
@jamiesun jamiesun marked this pull request as ready for review October 27, 2025 09:14
@jamiesun jamiesun marked this pull request as draft October 27, 2025 09:15
@jamiesun jamiesun marked this pull request as ready for review October 27, 2025 09:15
@jamiesun jamiesun merged commit 015f2fd into main Oct 27, 2025
7 checks passed
@jamiesun jamiesun mentioned this pull request Oct 27, 2025
4 tasks
@jamiesun jamiesun deleted the feature/github-workflows-and-branch-protection branch October 27, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants