[local lint] Force color output on mypy (#58071)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/58071
There's an environment variable that mypy will use to force color output, so turn that on if the runner detects a terminal.
Test Plan: Imported from OSS
Reviewed By: samestep
Differential Revision: D28360742
Pulled By: driazati
fbshipit-source-id: c0dc372a44ab3a16e67115ce54784f4d5a4833ee