Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: 使用 Pyright 和 Ruff Actions 替换 Pre-commit Bot实现静态代码检查 #1811

Open
BalconyJH opened this issue Jan 2, 2025 · 0 comments
Labels
ci Issues related to automated workflows, build pipelines, and CI tools. enhancement New feature or request

Comments

@BalconyJH
Copy link
Collaborator

希望能解决的问题

当前项目依赖 Pre-commit action 进行静态代码检查和格式化,但我们希望通过 CI 工作流中的 GitHub Actions 来简化和标准化检查过程,从而减少对本地 pre-commit 配置的依赖,提高开发体验。

描述所需要的功能

  1. 集成 Pyright Action

    • 使用 Pyright Action 对代码进行类型检查。
    • 在每次提交或 PR 时自动运行 Pyright,确保代码的类型安全性。
  2. 集成 Ruff Action

    • 使用 Ruff Action 替代当前的 lint 工具。
    • 自动检测代码风格问题并提供修复建议。
  3. CI 工作流的更新

    • 修改现有的 CI 配置文件,集成上述两个工具。
    • 确保工作流在每次推送、PR 或定期运行时执行 Pyright 和 Ruff。
  4. 结果报告

    • 在 PR 页面显示静态代码检查和格式化的结果。
    • 如果检查失败,提供明确的错误日志。
  5. 文档更新

    • 更新项目文档,说明如何配置和使用新的 CI 工作流。
    • 移除与 pre-commit Bot 相关的内容。
@BalconyJH BalconyJH added enhancement New feature or request ci Issues related to automated workflows, build pipelines, and CI tools. labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Issues related to automated workflows, build pipelines, and CI tools. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant