From e2e26e5966bc7cf8a96eecb98a5d46c116ee6271 Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Thu, 7 Dec 2023 14:08:53 -0800 Subject: [PATCH] exit code --- libs/core/Makefile | 2 +- libs/experimental/Makefile | 2 +- libs/langchain/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/core/Makefile b/libs/core/Makefile index b5a20ce0619db..3e37a4ca5180d 100644 --- a/libs/core/Makefile +++ b/libs/core/Makefile @@ -17,7 +17,7 @@ test_watch: check_imports: langchain_core/**/*.py for f in $^ ; do \ - python -c "from importlib.machinery import SourceFileLoader; SourceFileLoader('x', '$$f').load_module()" ; \ + python -c "from importlib.machinery import SourceFileLoader; SourceFileLoader('x', '$$f').load_module()" || exit 1; \ done ###################### diff --git a/libs/experimental/Makefile b/libs/experimental/Makefile index affbc7777d7eb..df73cebbf9867 100644 --- a/libs/experimental/Makefile +++ b/libs/experimental/Makefile @@ -23,7 +23,7 @@ integration_tests: check_imports: langchain_experimental/**/*.py for f in $^ ; do \ - python -c "from importlib.machinery import SourceFileLoader; SourceFileLoader('x', '$$f').load_module()" ; \ + python -c "from importlib.machinery import SourceFileLoader; SourceFileLoader('x', '$$f').load_module()" || exit 1; \ done diff --git a/libs/langchain/Makefile b/libs/langchain/Makefile index 713ff9d076fc1..b934869c34cbd 100644 --- a/libs/langchain/Makefile +++ b/libs/langchain/Makefile @@ -42,7 +42,7 @@ docker_tests: check_imports: langchain/**/*.py for f in $^ ; do \ - python -c "from importlib.machinery import SourceFileLoader; SourceFileLoader('x', '$$f').load_module()" ; \ + python -c "from importlib.machinery import SourceFileLoader; SourceFileLoader('x', '$$f').load_module()" || exit 1; \ done ######################