diff --git a/.buildinfo b/.buildinfo
index 6d171b0b..16a50495 100644
--- a/.buildinfo
+++ b/.buildinfo
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: ffc9d29daaccfa5daf307b11678b4e7a
+config: 8ec9acd1a896080f402d715918e690ef
tags: 645f666f9bcd5a90fca523b33c5a78b7
diff --git a/.doctrees/design.doctree b/.doctrees/design.doctree
index 0501bd63..e80fbc3c 100644
Binary files a/.doctrees/design.doctree and b/.doctrees/design.doctree differ
diff --git a/.doctrees/environment.pickle b/.doctrees/environment.pickle
index ec86d7f7..8777697d 100644
Binary files a/.doctrees/environment.pickle and b/.doctrees/environment.pickle differ
diff --git a/.doctrees/readme.doctree b/.doctrees/readme.doctree
index 5685826c..8004e70e 100644
Binary files a/.doctrees/readme.doctree and b/.doctrees/readme.doctree differ
diff --git a/_modules/index.html b/_modules/index.html
index 93da4878..4b134cab 100644
--- a/_modules/index.html
+++ b/_modules/index.html
@@ -4,7 +4,7 @@
__version__=distribution('mlx.warnings').version
+defsubstitute_envvar(checker_config,keys):
+"""Modifies configuration for checker in-place, resolving any environment variables for ``keys``
+
+ Args:
+ checker_config (dict): Configuration for a specific WarningsChecker
+ keys (set): Set of keys to process the value of
+
+ Raises:
+ WarningsConfigError: Failed to find an environment variable
+ """
+ forkeyinkeys:
+ ifkeyinchecker_configandisinstance(checker_config[key],str):
+ template_obj=Template(checker_config[key])
+ try:
+ checker_config[key]=template_obj.substitute(os.environ)
+ exceptKeyErroraserr:
+ raiseWarningsConfigError(f"Failed to find environment variable {err} for configuration value {key!r}")\
+ fromNone
+
+
try:template_obj.template=template_obj.substitute(os.environ,description='$description')exceptKeyErroraserr:
- raiseValueError(f"Failed to find environment variable from configuration value "
- f"'cq_description_template': {err}")fromerr
+ raiseWarningsConfigError(f"Failed to find environment variable from configuration value "
+ f"'cq_description_template': {err}")fromerrself._cq_description_template=template_obj