pre-commit / pre-commit/pre-commit-hooks
`requirements-txt-fixer` ordering breaks using --index-url and --extra-index-url together in requirements.txt
未关闭
还没有人认领这个 Issue。
enhancement
good-first-issue
- 主要语言
- Python
- 星标
- 6.7k
- 派生
- 800
- PR 合并指标
- 30 天内没有已合并 PR
描述
If you use both the --index-url and --extra-index-url flags together in a requirements.txt file the hook will put --extra-index-url above the --index-url which causes the url set to index-url be skipped. I suppose this is because the flags are also sorted alphabetically.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
Start at the requirements-txt-fixer hook entry point and trace how --index-url and --extra-index-url are ordered in requirements.txt. Check the related tests if present, then verify that --index-url remains before --extra-index-url so both settings are honored.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100