core[patch], langchain[patch], experimental[patch]: import CI (#14414)

This commit is contained in:
Erick Friis
2023-12-08 11:28:55 -08:00
committed by GitHub
parent ba083887e5
commit b3f226e8f8
12 changed files with 177 additions and 113 deletions

View File

@@ -15,6 +15,10 @@ tests:
test_watch:
poetry run ptw --snapshot-update --now . -- -vv -x tests/unit_tests
check_imports: langchain_core/**/*.py
for f in $^ ; do \
python -c "from importlib.machinery import SourceFileLoader; SourceFileLoader('x', '$$f').load_module()" || exit 1; \
done
extended_tests:
poetry run pytest --only-extended $(TEST_FILE)
@@ -32,7 +36,7 @@ lint_tests: PYTHON_FILES=tests
lint lint_diff lint_package lint_tests:
./scripts/check_pydantic.sh .
./scripts/check_imports.sh
./scripts/lint_imports.sh
poetry run ruff .
[ "$(PYTHON_FILES)" = "" ] || poetry run ruff format $(PYTHON_FILES) --diff
[ "$(PYTHON_FILES)" = "" ] || poetry run ruff --select I $(PYTHON_FILES)