DiamondLightSource / DiamondLightSource/python-copier-template

Fail if there are undefined variables in the template

未关闭 适合新手
#334 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Jinja
星标
25
派生
10
平均合并
4 小时 4 分钟
30 天内合并 PR
6

描述

As soon as https://github.com/copier-org/copier/pull/2587 is released we should use it.

This should be as simple as:
```yaml
_envops:
undefined: jinja2.StrictUndefined
```

贡献指南

打开贡献指南

调研方向

Wait for copier PR #2587 to be released, then inspect the template configuration and identify where the _envops settings belong. Apply the requested undefined-variable behavior and verify that rendering a template with an undefined variable fails as expected.

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

评估

技术栈
python
领域
tooling
Issue 类型
功能
难度
1/5
预计耗时
1 小时以内
活跃度
冷清
描述清晰度
基本清楚
新手友好度
68/100

把新 issue 发到你的邮箱

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