Skip to content

Commit

Permalink
Fix PyYAML and linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fa9r authored and stefannica committed Nov 22, 2023
1 parent 4065cf5 commit 1d7c33f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ module = [
"datasets.*",
"pyngrok.*",
"cloudpickle.*",
"matplotlib.*",
]
ignore_missing_imports = true

Expand Down
9 changes: 7 additions & 2 deletions scripts/install-zenml-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,16 @@ install_integrations() {
zenml integration export-requirements \
--output-file integration-requirements.txt \
$ignore_integrations_args

# pin pyyaml>=6.0.1
echo "" >> integration-requirements.txt
echo "pyyaml>=6.0.1" >> integration-requirements.txt

pip install -r integration-requirements.txt
rm integration-requirements.txt

# install langchain and llama_index integrations separately
zenml integration install -y langchain llama_index
# install langchain separately
zenml integration install -y langchain
}


Expand Down
2 changes: 1 addition & 1 deletion src/zenml/integrations/langchain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class LangchainIntegration(Integration):
"""Definition of langchain integration for ZenML."""

NAME = LANGCHAIN
REQUIREMENTS = ["langchain>=0.0.116"]
REQUIREMENTS = ["langchain>=0.0.116", "pyyaml>=6.0.1"]

@classmethod
def activate(cls) -> None:
Expand Down

0 comments on commit 1d7c33f

Please sign in to comment.