-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Caching: Add the
strict
argument configuration validation
So far, the caching configuration validation only considered whether the defined identifiers were valid syntactically. This made it possible for a user to specify a valid identifier but that didn't actually match a class that can be imported or an entry point that cannot be loaded. If this is due to a typo, the user may be confused why the caching config seems to be ignored. The caching control functionality adds the `strict` argument, which when set to `True`, besides checking the syntax validity of an identifier, will also try to import/load it and raise a `ValueError` if it fails. By default it is set to `False` to maintain backwards compatibility.
- Loading branch information
Showing
3 changed files
with
117 additions
and
41 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
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
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