Skip to content

Commit 3911010

Browse files
GWealecopybara-github
authored andcommitted
chore: re-enable and fix the mypy delta presubmit
Scope the delta check to the files the CL changed via the kokoro presubmit_request, and decouple the workspace copy so mypy module resolution is stable. Co-authored-by: George Weale <gweale@google.com> PiperOrigin-RevId: 941321034
1 parent ffe41f0 commit 3911010

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,11 @@ single_line_exclusions = []
292292
known_third_party = [ "a2a", "google.adk" ]
293293

294294
[tool.mypy]
295+
mypy_path = [ "src" ]
295296
exclude = [ "contributing/samples/", "tests/" ]
296-
follow_imports = "skip"
297+
namespace_packages = true
298+
explicit_package_bases = true
299+
follow_imports = "normal"
297300
python_version = "3.11"
298301
disable_error_code = [ "import-not-found", "import-untyped", "unused-ignore" ]
299302
strict = true

0 commit comments

Comments
 (0)