bazel-contrib / bazel-contrib/rules_python

(gazelle) Delete py_library and py_test targets with missing srcs

未关闭
#3,375 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
gazelle
主要语言
Starlark
星标
688
派生
721
平均合并
15 小时 7 分钟
30 天内合并 PR
76

描述

Followup to https://github.com/bazel-contrib/rules_python/pull/3046#issuecomment-3094797158.

We've merged #3046 which will delete `py_binary` targets with missing srcs - let's now expand that to include `py_library` and `py_test` targets.

@yushan26 did you want to take this on?

贡献指南

打开贡献指南

调研方向

首先检查 pull request #3046 中的实现和测试,该 pull request 为缺少 srcs 的 py_binary 目标添加了删除功能。将相同的行为扩展到 py_library 和 py_test 目标,然后运行相关的 Gazelle 测试,并确认这些目标在缺少 srcs 时会被删除。

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

评估

技术栈
python
领域
build-system
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

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