[next-major] Remove traces of CamelCase
评估
调研方向
从 issue 中展示的 Python wrapper 声明开始,找出 writer、suggestion 和 search API 中剩余的 CamelCase 名称。将这些暴露的方法和参数重命名为 snake_case,移除相关的命名例外,并确认引用和检查在下一次 major release 之前使用新的 API。
由索引模型根据 Issue 内容生成。
描述
As libzim uses CamelCase, we sometimes followed the convention to stick to the pure-wrapper way.
Given case is not that important and we don't follow it everywhere (it's become minor overtime), we should just remove the remaining traces and use snake case everywhere.
It's a tiny change but obviously breaks the API so should not be merged until approaching next major release
# writer
def config_nbworkers(self, nbWorkers: int) -> Self: ... # noqa: N803
def set_mainpath(self, mainPath: str) -> Self: ... # noqa: N803
def add_redirection(
self,
path: str,
title: str,
targetPath: str, # noqa: N803
hints: dict[Hint, int],
) -> None: ...
def add_alias(
self,
path: str,
title: str,
targetPath: str, # noqa: N803
hints: dict[Hint, int],
) -> None: ...
# suggestion
def getEstimatedMatches(self) -> int: ... # noqa: N802
# search
def getEstimatedMatches(self) -> int: ... # noqa: N802
def getResults(self, start: int, count: int) -> SearchResultSet: ... # noqa: N802
- 主要语言
- Python
- 星标
- 110
- 派生
- 29
- 平均合并
- 2 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
openzim/python-libzim 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
openzim/python-libzim#268 · 4 条评论 · 1 个 reaction ·
-
Release 3.14.0可能重新可做 @benoit74 于 36 天前认领,目前没有进行中的 PR。 未关闭
openzim/python-libzim#267 · 已指派 1 人 ·
-
难度 5/5 一周以上 新手友好度 35/100
openzim/python-libzim#266 ·
-
Build for ABI3可能已有人在做 @rgaudin 于 61 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
openzim/python-libzim#264 · 1 条评论 ·
-
upstream
难度 4/5 3-5 天 新手友好度 25/100
openzim/python-libzim#241 ·
查看 openzim/python-libzim 的全部 Issue
相似的 Issue
-
python triage
难度 2/5 1-3 小时 新手友好度 82/100
microsoft/semantic-kernel#14590 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
pinterest/pymemcache#662 ·
维护者通常 1 天内回复
-
难度 2/5 半天 新手友好度 62/100
gnocchixyz/gnocchi#1527 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
tenstorrent/tt-model-manager#181 ·
维护者通常 1 天内回复