exercism / exercism/python

[CI]: Consider More Detailed JinJa2 Template Linting and Checking

未关闭
#2,698 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
discussion 💬 smolder🍲
主要语言
Python
星标
2.5k
派生
1.5k
PR 合并指标
30 天内没有已合并 PR

描述

After doing numerous JinJa2 template PRs and test file regeneration (_and getting caught by a nasty indentation bug_), it feels like we could benefit from setting up some linting rules and checks for JinJa2 templates that are a bit more detailed and custom. Right now, we check that the files will produce test files that can be linted by Black, but we don't _really_ do much additional validation.

Marking this as a discussion, since I haven't formed many more thoughts that that around this issue. But I anticipate both more contributors and more changes to templates going forward, so thought I'd make a note here of what I have found so far:

[curlylint](https://www.curlylint.org/docs/rules/all)
[Jinjalint](https://causlayer.orgs.hk/motet-a/jinjalint)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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