Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Lots of things are broken with Click 8.2.0

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

还没有人认领这个 Issue。

评估

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

调研方向

Start by reproducing the two reported failures with Click 8.2.0: test HEXDOC_RELEASE=false parsing and run hexdoc build -h. The issue names no source files or tests, so locate the environment-variable parsing and CLI setup before investigating the Typer/Click traceback. Done means both behaviors work under Click 8.2.0; the issue does not specify a test file.

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

描述

  • HEXDOC_RELEASE envvar parsing seems to be broken - HEXDOC_RELEASE=false parses as True.
  • Error when running hexdoc build -h:
(venv) PS C:\Users\object\Git\hexdoc> hexdoc build -h
╭──────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────╮
│ in _run_module_as_main:198                                                                                                │
│ in _run_code:88                                                                                                           │
│                                                                                                                           │
│ in <module>:10                                                                                                            │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\typer\main.py:340 in __call__                                           │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\typer\main.py:323 in __call__                                           │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:1442 in __call__                                          │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\typer\core.py:740 in main                                               │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\typer\core.py:195 in _main                                              │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:1828 in invoke                                            │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:1186 in make_context                                      │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:1197 in parse_args                                        │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:2416 in handle_parse_result                               │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:2355 in process_value                                     │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\decorators.py:539 in show_help                                    │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:730 in get_help                                           │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:1064 in get_help                                          │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\typer\core.py:691 in format_help                                        │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\typer\rich_utils.py:560 in rich_format_help                             │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:969 in get_usage                                          │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:1002 in format_usage                                      │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:1012 in collect_usage_pieces                              │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:3104 in get_usage_pieces                                  │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: TyperArgument.make_metavar() takes 1 positional argument but 2 were given
主要语言
Python
星标
7
派生
10
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

hexdoc-dev/hexdoc 的其他 Issue

查看 hexdoc-dev/hexdoc 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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