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
```

貢獻指南

開啟貢獻指南

研究方向

等待 copier PR #2587 發布,然後檢查範本設定並確認 _envops 設定應放在哪裡。套用所要求的未定義變數行為,並驗證使用未定義變數渲染範本會如預期失敗。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
tooling
Issue 類型
功能
難度
1/5
預估耗時
1 小時以內
活躍度
冷清
描述清晰度
基本清楚
新手友好度
68/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。