From a1c59ae0b3cacf4dcd05d81ededdc3b45679adeb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 3 Nov 2023 23:52:26 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- packages/jupyter-ai/jupyter_ai/document_loaders/directory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jupyter-ai/jupyter_ai/document_loaders/directory.py b/packages/jupyter-ai/jupyter_ai/document_loaders/directory.py index dd1e52b84..efcc99e95 100644 --- a/packages/jupyter-ai/jupyter_ai/document_loaders/directory.py +++ b/packages/jupyter-ai/jupyter_ai/document_loaders/directory.py @@ -55,8 +55,8 @@ 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)] - filenames = [f for f in filenames if not f[0] == '.'] + 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: filepath = Path(os.path.join(dir, filename))