Skip to content

Commit

Permalink
doc: Use best effort import of lisa submodules
Browse files Browse the repository at this point in the history
FIX

Use best effort import when importing recursively all of lisa e.g. to
discover deprecated items. This is now necessary since some imports will
fail (shims) if the lisa_tests package is not installed.
  • Loading branch information
douglas-raillard-arm committed Jan 8, 2024
1 parent ed05711 commit ce26d76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lisa/_doc/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ def get_deprecated_map():
"""

# Import everything there is to import, so the map is fully populated
import_all_submodules(lisa)
import_all_submodules(lisa, best_effort=True)
return DEPRECATED_MAP

def get_deprecated_table():
Expand Down
2 changes: 1 addition & 1 deletion lisa/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def sphinx_nitpick_ignore():
Set of objects to ignore without warning when cross referencing in Sphinx.
"""
# Make sure the set is populated
import_all_submodules(lisa)
import_all_submodules(lisa, best_effort=True)
return _SPHINX_NITPICK_IGNORE


Expand Down

0 comments on commit ce26d76

Please sign in to comment.