Fail if there are undefined variables in the template
还没有人认领这个 Issue。
评估
调研方向
等待 copier PR #2587 发布,然后检查模板配置并确定 _envops 设置应放在哪里。应用所请求的未定义变量行为,并验证使用未定义变量渲染模板会按预期失败。
由索引模型根据 Issue 内容生成。
描述
As soon as https://github.com/copier-org/copier/pull/2587 is released we should use it.
This should be as simple as:
_envops:
undefined: jinja2.StrictUndefined
- 主要语言
- Jinja
- 星标
- 25
- 派生
- 10
- 平均合并
- 4 天 17 小时
- 30 天内合并 PR
- 7
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DiamondLightSource/python-copier-template 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 72/100
-
documentation good first issue
难度 1/5 1 小时以内 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 3/5 1-2 天 新手友好度 55/100
查看 DiamondLightSource/python-copier-template 的全部 Issue
相似的 Issue
-
kaliscan.com 未关闭N: AdGuard for iOS P3: Medium T: Ads
难度 2/5 1-3 小时 新手友好度 68/100
AdguardTeam/AdguardFilters#242501 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
-
[BUG] createTool tools cannot be registered with Mastra when exactOptionalPropertyTypes is enabled 未关闭customer-eng status: needs triage
难度 2/5 1-3 小时 新手友好度 84/100
-
add-toolnames MCP Toolnames Toolnames checkup
难度 2/5 1-3 小时 新手友好度 68/100
rajbos/ai-engineering-fluency#2190 · 3 条评论 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
gajus/eslint-plugin-jsdoc#1776 · 1 个 reaction ·