DiamondLightSource / DiamondLightSource/python-copier-template

Fail if there are undefined variables in the template

Ouverte Adaptée aux débutants
#334 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Jinja
Étoiles
25
Forks
10
Merge moyen
4 h 4 min
PR mergées (30 j)
6

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
tooling
Type d'issue
Fonctionnalité
Difficulté
1/5
Temps estimé
Moins d'une heure
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
68/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.