Add option to avoid breaking a single word into a new line
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 42/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
- 领域
- documentation, tooling
调研方向
该 issue 没有指明实现文件、测试或入口点。首先定位 formatter 现有的 max-line-length 换行逻辑及其测试;明确为避免最后一行只有一个单词,是应允许出现超长行,还是应更早换行,然后为所选行为添加覆盖测试。
由索引模型根据 Issue 内容生成。
描述
I don't know in which formatter I saw this (might have been ruff but can't find it there anymore), but one of them has this really nice feature that minor max-line-length violations are acceptable, if wrapping would result in ugliness. In particular this means that it will
not auto-wrap a comment if the next line would contain just one word. It would either wrap earlier (to have 2-3 words in the new line) or accept that the line will be slightly longer than the usual maximum.
- 主要语言
- Python
- 星标
- 598
- 派生
- 95
- 平均合并
- 2 天 3 小时
- 30 天内合并 PR
- 11
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PyCQA/docformatter 的其他 Issue
-
1.7.8 crashes with a tokenize ValueError on a multi-line f-string inside parentheses可能重新可做 @adityaanikam 于 71 天前认领,目前没有进行中的 PR。 未关闭C: convention P: bug U: high
难度 3/5 1-2 天 新手友好度 74/100
PyCQA/docformatter#367 · 1 条评论 ·
维护者通常 1 天内回复
-
1.7.8 rewrites the contents of a non-docstring triple-quoted string, silently changing its value未关闭C: convention P: bug U: high
难度 3/5 1-2 天 新手友好度 72/100
PyCQA/docformatter#366 ·
维护者通常 1 天内回复
-
C: stakeholder P: enhancement U: low
难度 3/5 1-2 天 新手友好度 65/100
PyCQA/docformatter#346 ·
维护者通常 1 天内回复
-
C: convention P: bug U: high
难度 3/5 1-2 天 新手友好度 48/100
PyCQA/docformatter#345 · 1 个 reaction ·
维护者通常 1 天内回复
-
Multiline summary is not split correctly可能重新可做 关联的 PR 已关闭且未合并。 未关闭C: convention P: bug U: high
难度 3/5 1-2 天 新手友好度 55/100
PyCQA/docformatter#315 · 1 条评论 ·
维护者通常 1 天内回复
查看 PyCQA/docformatter 的全部 Issue
相似的 Issue
-
Uninstall guide omits the CloudWatch log groups AWS CodeBuild creates for useCodeBuild pipelines未关闭bug documentation
难度 1/5 1-3 小时 新手友好度 88/100
awslabs/visual-asset-management-system#552 ·
维护者通常 1 天内回复
-
netbox status: needs triage type: documentation
难度 1/5 1 小时以内 新手友好度 76/100
netbox-community/netbox#23460 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
awslabs/threat-composer#362 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
ansys/pyansys-common-mcp#213 ·
维护者通常 3 天内回复