nomic: init pkg (#16853)

Co-authored-by: Lance Martin <lance@langchain.dev>
This commit is contained in:
Erick Friis
2024-01-31 16:46:35 -08:00
committed by GitHub
parent 2e5949b6f8
commit 17e886388b
24 changed files with 2179 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import sys
import traceback
from importlib.machinery import SourceFileLoader
if __name__ == "__main__":
files = sys.argv[1:]
has_failure = False
for file in files:
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
print(file)
traceback.print_exc()
print()
sys.exit(1 if has_failure else 0)