NOAA-EMC / wxflow

Tools for Weather Workflows
https://wxflow.readthedocs.io/en/latest
GNU Lesser General Public License v3.0
0 stars 7 forks source link

Option to error on missing Jinja2 variables #27

Closed DavidHuber-NOAA closed 3 months ago

DavidHuber-NOAA commented 3 months ago

Description

This allows a user to specify if they want to allow missing variables in a jinja2 template. If allow_missing == False, a NameError will be raised with the name of the variable that is undefined. The default is True, which is the current behavior.

Type of change

How Has This Been Tested?

Checklist

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 47.93%. Comparing base (71f6b10) to head (df2875c). Report is 9 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #27 +/- ## =========================================== + Coverage 47.87% 47.93% +0.06% =========================================== Files 18 18 Lines 1650 1650 Branches 335 335 =========================================== + Hits 790 791 +1 + Misses 801 799 -2 - Partials 59 60 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.