`git init` is mandatory

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

还没有人认领这个 Issue。

评估

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

调研方向

Start with the cookiecutter flow that asks whether to run git init, then inspect pyproject.toml and its setuptools-scm configuration. Reproduce the issue by creating a project, answering no, and running uv pip install -e .; done means the generated project handles that choice consistently without the reported installation failure.

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

描述

bug
Describe the Bug

Despite that we allow users to say "no" to the question about initialising a git repository, we have setuptools-scm in our pyproject.toml so one can't run

uv pip install -e .

if one hasn't initialised a repo. It might be simplest "just" to check that git is installed and error if not. But as-is, there's a bug in the questions vs. pyproject.toml.

To Reproduce

Cookiecut a project, say "no" to the git init question and see what things break 😄.

Expected Behaviour

No response

Actual Behaviour

No response

Version In Use

v1.0.1

Additional Context
- Cookiecutter version: 2.6.0
- Operating system: macOS
- Python version: 3.13

Though I'm pretty confident this isn't an OS/version-dependent problem.
主要语言
Python
星标
62
派生
10
平均合并
7 天 6 小时
30 天内合并 PR
6

贡献指南

打开贡献指南

从这里开始

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

UCL-ARC/python-tooling 的其他 Issue

查看 UCL-ARC/python-tooling 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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