[ty] Keep colorizing `mypy_primer` output (#21515)

## Summary

After an update to `mypy_primer`, we now need to set the environment
variable ourselves.
This commit is contained in:
David Peter 2025-11-19 09:52:51 +01:00 committed by GitHub
parent 663f78e644
commit e29f3ed0fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -55,6 +55,7 @@ jobs:
- name: Run mypy_primer - name: Run mypy_primer
env: env:
PRIMER_SELECTOR: crates/ty_python_semantic/resources/primer/good.txt PRIMER_SELECTOR: crates/ty_python_semantic/resources/primer/good.txt
CLICOLOR_FORCE: "1"
DIFF_FILE: mypy_primer.diff DIFF_FILE: mypy_primer.diff
run: | run: |
cd ruff cd ruff

View File

@ -20,7 +20,7 @@ cd ..
echo "Project selector: ${PRIMER_SELECTOR}" echo "Project selector: ${PRIMER_SELECTOR}"
# Allow the exit code to be 0 or 1, only fail for actual mypy_primer crashes/bugs # Allow the exit code to be 0 or 1, only fail for actual mypy_primer crashes/bugs
uvx \ uvx \
--from="git+https://github.com/hauntsaninja/mypy_primer@089ac1da83cf26aee9c98de412b7eb10e20b2212" \ --from="git+https://github.com/hauntsaninja/mypy_primer@a81360123447a9409ab72f6b4f9684c02a9768e7" \
mypy_primer \ mypy_primer \
--repo ruff \ --repo ruff \
--type-checker ty \ --type-checker ty \