diff --git a/packages/jupyter-ai/jupyter_ai/document_loaders/directory.py b/packages/jupyter-ai/jupyter_ai/document_loaders/directory.py index 5c3297e90..b87a7245f 100644 --- a/packages/jupyter-ai/jupyter_ai/document_loaders/directory.py +++ b/packages/jupyter-ai/jupyter_ai/document_loaders/directory.py @@ -61,7 +61,9 @@ def split(path, all_files: bool, splitter): # Filter out hidden filenames, hidden directories, and excluded directories, # unless "all files" are requested if not all_files: - subdirs[:] = [d for d in subdirs if not (d[0] == "." or d in EXCLUDE_DIRS)] + subdirs[:] = [ + d for d in subdirs if not (d[0] == "." or d in EXCLUDE_DIRS) + ] filenames = [f for f in filenames if not f[0] == "."] for filename in filenames: