matplotlib / matplotlib/pytest-mpl
decorator hash_library kwarg option precedence
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 272
- 派生
- 53
- PR 合并指标
- 30 天内没有已合并 PR
描述
Within the plugin.ImageComparison.compare_image_to_hash_library method, should it not be the case that the mpl_image_compare marker hash_library kwarg option should have precedence over the --mpl-hash-library CLI argument?
At the moment this isn't the case, however a similar precedence is supported for the baseline_dir decorator option e.g.,

贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 pytest_mpl/plugin.py 中 520-521 行附近的 compare_image_to_hash_library 方法开始,跟踪 decorator 的 hash_library 选项和 --mpl-hash-library 参数是如何被选择的。完成的标准是:decorator 选项具有优先级,与现有的 baseline_dir 行为保持一致,并且有针对该优先级的回归测试覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- cli, testing-qa
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100