Skip to content

Commit

Permalink
better function name
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Nov 28, 2024
1 parent 9ac51be commit 2032f48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/utils/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from a lazy import.
"""

def import_packages_with_init(directory):
def validate_package_imports(directory):
"""
Recursively search for directories with __init__.py and import them.
"""
Expand Down Expand Up @@ -51,7 +51,7 @@ def import_packages_with_init(directory):

if __name__ == '__main__':
print("Checking imports from Haystack packages...")
imported, failed = import_packages_with_init("haystack")
imported, failed = validate_package_imports(directory="haystack")

if not imported:
print("\nNO PACKAGES WERE IMPORTED")
Expand Down

0 comments on commit 2032f48

Please sign in to comment.