Skip to content

Commit 79bbbd4

Browse files
committed
Merge remote-tracking branch 'upstream/0.3.0' into input-validation
2 parents a0a693e + 8022c6f commit 79bbbd4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+3665
-2611
lines changed

.github/workflows/scripts/run_notebooks.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ cd docs/examples
99
# Function to process a notebook
1010
process_notebook() {
1111
notebook="$1"
12-
if [ "$notebook" != "valid_chess_moves.ipynb" ] && [ "$notebook" != "translation_with_quality_check.ipynb" ]; then
12+
invalid_notebooks=("valid_chess_moves.ipynb" "translation_with_quality_check.ipynb" "llamaindex-output-parsing.ipynb")
13+
if [[ ! " ${invalid_notebooks[@]} " =~ " ${notebook} " ]]; then
1314
echo "Processing $notebook..."
1415
poetry run jupyter nbconvert --to notebook --execute "$notebook"
1516
if [ $? -ne 0 ]; then

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dist/*
2020
.cache
2121
scratch/
2222
.coverage*
23+
coverage.xml
2324
test.db
2425
test.index
2526
htmlcov

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ test-cov:
4747
view-test-cov:
4848
poetry run pytest tests/ --cov=./guardrails/ --cov-report html && open htmlcov/index.html
4949

50+
view-test-cov-file:
51+
poetry run pytest tests/unit_tests/test_logger.py --cov=./guardrails/ --cov-report html && open htmlcov/index.html
52+
5053
docs-serve:
5154
poetry run mkdocs serve -a $(MKDOCS_SERVE_ADDR)
5255

0 commit comments

Comments
 (0)