From 1a18ada931c3a2de2b11abe3f01461c6032e7503 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 19 Dec 2025 19:31:20 +0000 Subject: [PATCH] [ty] Run mypy_primer and typing-conformance workflows on fewer PRs (#22096) ## Summary Fixes https://github.com/astral-sh/ty/issues/2090. Quoting my rationale from that issue: > A PR that only touches code in [one of these crates] should never have any impact on memory usage or diagnostics produced. And the comments from the bot just lead to additional notifications which is annoying. I _think_ I've got the syntax right here. The [docs](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax) say: > The order that you define paths patterns matters: > > - A matching negative pattern (prefixed with !) after a positive match will exclude the path. > - A matching positive pattern after a negative match will include the path again. ## Test Plan No idea? Merge it and see? --- .github/workflows/mypy_primer.yaml | 5 +++++ .github/workflows/typing_conformance.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/mypy_primer.yaml b/.github/workflows/mypy_primer.yaml index 22af7025da..f68fe768df 100644 --- a/.github/workflows/mypy_primer.yaml +++ b/.github/workflows/mypy_primer.yaml @@ -6,6 +6,11 @@ on: pull_request: paths: - "crates/ty*/**" + - "!crates/ty_ide/**" + - "!crates/ty_server/**" + - "!crates/ty_test/**" + - "!crates/ty_completion_eval/**" + - "!crates/ty_wasm/**" - "crates/ruff_db" - "crates/ruff_python_ast" - "crates/ruff_python_parser" diff --git a/.github/workflows/typing_conformance.yaml b/.github/workflows/typing_conformance.yaml index 82fac8a456..bf126f9acb 100644 --- a/.github/workflows/typing_conformance.yaml +++ b/.github/workflows/typing_conformance.yaml @@ -6,6 +6,11 @@ on: pull_request: paths: - "crates/ty*/**" + - "!crates/ty_ide/**" + - "!crates/ty_server/**" + - "!crates/ty_test/**" + - "!crates/ty_completion_eval/**" + - "!crates/ty_wasm/**" - "crates/ruff_db" - "crates/ruff_python_ast" - "crates/ruff_python_parser"