From e29f3ed0fe565f7ca6792dcd4172a8ea24483625 Mon Sep 17 00:00:00 2001 From: David Peter Date: Wed, 19 Nov 2025 09:52:51 +0100 Subject: [PATCH] [ty] Keep colorizing `mypy_primer` output (#21515) ## Summary After an update to `mypy_primer`, we now need to set the environment variable ourselves. --- .github/workflows/mypy_primer.yaml | 1 + scripts/mypy_primer.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mypy_primer.yaml b/.github/workflows/mypy_primer.yaml index 1cb80c479f..458e2e415f 100644 --- a/.github/workflows/mypy_primer.yaml +++ b/.github/workflows/mypy_primer.yaml @@ -55,6 +55,7 @@ jobs: - name: Run mypy_primer env: PRIMER_SELECTOR: crates/ty_python_semantic/resources/primer/good.txt + CLICOLOR_FORCE: "1" DIFF_FILE: mypy_primer.diff run: | cd ruff diff --git a/scripts/mypy_primer.sh b/scripts/mypy_primer.sh index cdb08bfa69..527376c12b 100755 --- a/scripts/mypy_primer.sh +++ b/scripts/mypy_primer.sh @@ -20,7 +20,7 @@ cd .. echo "Project selector: ${PRIMER_SELECTOR}" # Allow the exit code to be 0 or 1, only fail for actual mypy_primer crashes/bugs uvx \ - --from="git+https://github.com/hauntsaninja/mypy_primer@089ac1da83cf26aee9c98de412b7eb10e20b2212" \ + --from="git+https://github.com/hauntsaninja/mypy_primer@a81360123447a9409ab72f6b4f9684c02a9768e7" \ mypy_primer \ --repo ruff \ --type-checker ty \