From 0c77e25e381cb11f5dfd5a2ed7ebd6029bdfefef Mon Sep 17 00:00:00 2001 From: Prassanna Ravishankar Date: Fri, 17 Oct 2025 18:18:23 +0100 Subject: [PATCH 1/2] added exclusions to linting --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 9970ad7a5..5835b2d4c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -329,6 +329,10 @@ extra-standard-library = ["typing_extensions"] known-first-party = ["agentex", "tests"] [tool.ruff.lint.per-file-ignores] +# Exclude autogenerated files from future annotations requirement +"src/agentex/resources/**.py" = ["FA102"] +"src/agentex/types/**.py" = ["FA102"] +"src/agentex/_*.py" = ["FA102"] "bin/**.py" = ["T201", "T203"] "scripts/**.py" = ["T201", "T203"] "tests/**.py" = ["T201", "T203", "ARG001", "ARG002", "ARG005"] From faf72344fd256786c0ed6eca44355f0b07375dee Mon Sep 17 00:00:00 2001 From: Prassanna Ravishankar Date: Fri, 17 Oct 2025 18:38:05 +0100 Subject: [PATCH 2/2] linting excludes too --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 5835b2d4c..8c2270c32 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -189,6 +189,9 @@ exclude = [ ".git", "agentex-server", "examples/tutorials", + # Exclude autogenerated Stainless code from type checking + "src/agentex/resources", + "src/agentex/types", ] reportImplicitOverride = true