Update to latest repo-template and uv
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- docker, github-actions, python
调研方向
将仓库的 dependabot.yml、requirements.* 文件、pyproject.toml、justfile、Dockerfiles、.dockerignore、pre-commit 配置、DEVELOPERS.md 和 GHA 工作流与 repo-template 进行比较。首先检查所引用的模板和当前项目文件,然后在进行更改时运行列出的 just 命令。完成意味着检查清单已完成、已生成 uv.lock、依赖项更新和 Docker 构建均可正常工作,并且检查均已通过。
由索引模型根据 Issue 内容生成。
描述
Refer to https://github.com/opensafely-core/repo-template
Note: you probably want to commit with --no-verify until the justfile is updated and committed; otherwise pre-commit hooks will use old justfile commands and fail confusingly.
- Update dependabot.yml for github actions to include 7 day cooldown
- Move dependencies from requirements.prod.in into pyproject.toml
[project] - Copy tool.uv section from repo-template and move dev dependencies from requirements.dev.in into pyproject.toml
[dependency groups](remove pip and pip-tools if they're in the dependencies) - Delete requirements.* files
- Add a .python-version file (if there isn't one already)
- Update justfile with repo-template recipes; note that
devenvis not required for most recipes anymore (but recipes that require a .env file may need_dotenvsetup). In addition to adding the new recipes/versions of recipes for uv, update any extra ones that do e.g.python ...touv run python ... - Run
just cleanto remove any old venv - Run
just devenv,just check/test/runto make sure things work and generate a uv.lock - Run
just update-dependenciesand check that works too, and theexclude-newertimestamp in pyproject.toml and uv.lock has been correctly updated to 7 days ago - Update pre-commit config if necessary (compare with repo-template)
- Update Dockerfiles to use uv (following repo-template Dockerfile)
- Ensure that .python-version and pyproject.toml are not ignored in the .dockerignore file
- Run just docker/build to check it's working
- Update DEVELOPERS.md to include sections from repo-template on using uv and updating dependencies
- Update GHA workflows; any jobs that use setup-action will need to add:
install-uv: true
cache: uv
But you can remove the python version unless you have anything in a workflow job that runs python without using uv.
- 主要语言
- Python
- 星标
- 0
- 派生
- 0
- 平均合并
- 2 天 20 小时
- 30 天内合并 PR
- 9
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
opensafely-core/osgithub 的其他 Issue
-
dependency-management
难度 2/5 1-3 小时 新手友好度 74/100
opensafely-core/osgithub#289 ·
-
难度 5/5 一周以上 新手友好度 35/100
opensafely-core/osgithub#269 ·
-
难度 3/5 1-2 天 新手友好度 52/100
opensafely-core/osgithub#242 ·
-
难度 5/5 一周以上 新手友好度 30/100
opensafely-core/osgithub#230 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 32/100
opensafely-core/osgithub#142 ·
查看 opensafely-core/osgithub 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
gradio-app/gradio#13895 ·
维护者通常 1 天内回复
-
build-error
难度 2/5 1-3 小时 新手友好度 76/100
spack/spack-packages#6713 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
ActivityWatch/activitywatch#1464 · 1 个 reaction ·
维护者通常 1 天内回复
-
[Bug]: The ckg tool drops the return type of every decorated Python method in class search results未关闭
难度 2/5 1-3 小时 新手友好度 78/100
bytedance/trae-agent#483 ·
维护者通常 1 天内回复