From eab46c788b6ad68ced70fa1964ce412d45344ba2 Mon Sep 17 00:00:00 2001 From: Rodrigo Patote <47055922+patote85@users.noreply.github.com> Date: Thu, 24 Sep 2026 08:00:33 -0300 Subject: [PATCH] agent-friendly L2-4: mypy on domain_dynamo Extend mypy files to lambda/domain_dynamo.py; drop unused lambda.* ignore_errors. Makefile/CI typecheck: mypy (pyproject files). Keep app.py out. --- .github/workflows/ci.yml | 2 +- Makefile | 2 +- pyproject.toml | 9 +++------ 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1bbc368..604fae3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: run: ruff check lambda tests cdk - name: Mypy - run: mypy tests + run: mypy test: runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index b1049b2..90561ad 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ lint: ruff check lambda tests cdk typecheck: - mypy tests + mypy synth: npx --yes aws-cdk@2 synth diff --git a/pyproject.toml b/pyproject.toml index edd6a26..a858423 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,9 +26,6 @@ ignore_missing_imports = true warn_return_any = false warn_unused_configs = true check_untyped_defs = false -# `lambda/` is a reserved package name; CDK stubs are heavy — typecheck tests only for now. -files = ["tests"] - -[[tool.mypy.overrides]] -module = "lambda.*" -ignore_errors = true +# Typecheck tests + domain_dynamo (HTTP app.py stays out — Powertools resolver cost). +# No ignore_errors on domain. +files = ["tests", "lambda/domain_dynamo.py"]