Migrate to pre-commit.ci for pre-commit checks

未关闭
#255 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
停滞
技术栈
github-actions, python
领域
ci-cd, tooling

调研方向

首先检查 Code Checks 工作流和存储库当前的 pre-commit 设置,尤其是其对 pre-commit/action 的使用。将该设置与 pre-commit.ci 文档所述的集成方式进行比较,并确认 checks 是如何触发的。迁移完成且报告的已弃用 Node.js 警告不再出现在 checks 中,即表示完成。

由索引模型根据 Issue 内容生成。

描述

.maint

Currently the Code Checks workflow is emitting a few warnings.

One of them is the following:
Run pre-commit

The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-python@v4, pre-commit/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

The pre-commit/action README has the following message;
https://github.com/pre-commit/action

this action is in maintenance-only mode and will not be accepting new features.
generally you want to use pre-commit.ci which is faster and has more features.

I think we should consider performing the migration to pre-comit.ci.

主要语言
Python
星标
59
派生
11
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

rstudio/pins-python 的其他 Issue

查看 rstudio/pins-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。