From fbeeac7bdede51c2d0c7b8f664816b451a0b2ac0 Mon Sep 17 00:00:00 2001 From: Stefano Fiorucci Date: Tue, 29 Oct 2024 16:23:31 +0100 Subject: [PATCH] ci: test with Python 3.9 (#127) * test with py39 * trigger * lint --- .github/workflows/tests.yml | 4 ++-- haystack_experimental/components/tools/openapi/_openapi.py | 2 +- .../components/tools/openapi/openapi_tool.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 69968446..3828a8f3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,13 +20,13 @@ on: - synchronize - ready_for_review paths: - # Keep the list in sync with the paths defined in the `tests_skipper.yml` workflow - "haystack_experimental/**/*.py" - "test/**/*.py" - "pyproject.toml" + - ".github/workflows/tests.yml" env: - PYTHON_VERSION: "3.8" + PYTHON_VERSION: "3.9" HATCH_VERSION: "1.13.0" PYTHONUNBUFFERED: "1" FORCE_COLOR: "1" diff --git a/haystack_experimental/components/tools/openapi/_openapi.py b/haystack_experimental/components/tools/openapi/_openapi.py index 5182b654..5528af5e 100644 --- a/haystack_experimental/components/tools/openapi/_openapi.py +++ b/haystack_experimental/components/tools/openapi/_openapi.py @@ -131,7 +131,7 @@ def __init__( request_sender: Optional[Callable[[Dict[str, Any]], Dict[str, Any]]] = None, llm_provider: LLMProvider = LLMProvider.OPENAI, operations_filter: Optional[Callable[[Dict[str, Any]], bool]] = None, - ): # noqa: PLR0913 + ): # noqa: PLR0913 # pylint: disable=too-many-positional-arguments """ Initialize a ClientConfiguration instance. diff --git a/haystack_experimental/components/tools/openapi/openapi_tool.py b/haystack_experimental/components/tools/openapi/openapi_tool.py index dac329a9..7bcb80d5 100644 --- a/haystack_experimental/components/tools/openapi/openapi_tool.py +++ b/haystack_experimental/components/tools/openapi/openapi_tool.py @@ -64,7 +64,7 @@ def __init__( spec: Optional[Union[str, Path]] = None, credentials: Optional[Secret] = None, allowed_operations: Optional[List[str]] = None, - ): + ): # pylint: disable=too-many-positional-arguments """ Initialize the OpenAPITool component.