From 8299b5e58d21006e92c9cb399005d69035dc8831 Mon Sep 17 00:00:00 2001 From: Mark Daoust Date: Thu, 20 Nov 2025 11:09:54 -0800 Subject: [PATCH] chore: Format mypy settings FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/googleapis/python-genai/pull/1727 from googleapis:release-please--branches--main a129cafbe5054503927160697d5a918632567cab PiperOrigin-RevId: 834834430 --- pyproject.toml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 718389d2f..3d90a056c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,15 +47,19 @@ Homepage = "https://github.com/googleapis/python-genai" [tool.setuptools.package-data] "google.genai" = ["py.typed"] +[tool.pytest.ini_options] +asyncio_mode = "auto" +asyncio_default_fixture_loop_scope = "function" + [tool.mypy] exclude = ["tests/", "_test_api_client\\.py"] plugins = ["pydantic.mypy"] # we are ignoring 'unused-ignore' because we run mypy on Python 3.9 - 3.13 and # some errors in _automatic_function_calling_util.py only apply in 3.10+ # 'import-not-found' and 'import-untyped' are environment specific -disable_error_code = ["import-not-found", "import-untyped", "unused-ignore"] +disable_error_code = [ + "import-not-found", + "import-untyped", + "unused-ignore", +] strict = true - -[tool.pytest.ini_options] -asyncio_mode = "auto" -asyncio_default_fixture_loop_scope = "function"