-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Two new features: Warnings on undefined, module_vars.
Yamlet now supports printing warnings (in GitHub Actions format) when a variable is undefined and its default value is used. This is in addition to the earlier support for exception message prefixes to allow formatting built-in exceptions as errors. It would probably behoove me to just add a warning/error formatter function, but we're in the moving fast phase. Also adds `module_vars`, which can be returned as part of a new `ImportInfo` class in place of a filename Path (or string) from the import resolver, which allows dynamically setting globals on a per-import basis.
- Loading branch information
1 parent
bfa81fb
commit d650a68
Showing
1 changed file
with
56 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters