huggingface: fix community dep checking (#21628)

This commit is contained in:
Erick Friis
2024-05-13 14:52:18 -07:00
committed by GitHub
parent 91a2ea5cd6
commit 9b51ca08bc
6 changed files with 42 additions and 19 deletions

View File

@@ -8,7 +8,7 @@ errors=0
# make sure not importing from langchain or langchain_experimental
git --no-pager grep '^from langchain\.' . && errors=$((errors+1))
git --no-pager grep '^from langchain_experimental\.' . && errors=$((errors+1))
# git --no-pager grep '^from langchain_community\.' . && errors=$((errors+1))
git --no-pager grep '^from langchain_community\.' . && errors=$((errors+1))
# Decide on an exit status based on the errors
if [ "$errors" -gt 0 ]; then