Skip to content

Commit

Permalink
Force mypy colors in CI
Browse files Browse the repository at this point in the history
Both the [GitHub Actions log viewer](https://github.uint.cloudmunity/t/ansi-color-output-in-webview/17621) and the HUD PR page log viewer support ANSI color codes so turn those on via this [secret env variable](python/mypy#7771)

ghstack-source-id: 77b47d6e1e449f69a44e24a5095c4980f92a383f
Pull Request resolved: pytorch/pytorch#61391
  • Loading branch information
driazati committed Jul 8, 2021
1 parent 9dd1824 commit 427e5ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@ jobs:
time python -mtools.codegen.gen -s aten/src/ATen -d build/aten/src/ATen
time python -mtools.pyi.gen_pyi --native-functions-path aten/src/ATen/native/native_functions.yaml --deprecated-functions-path "tools/autograd/deprecated.yaml"
- name: Run mypy
env:
MYPY_FORCE_COLOR: 1
TERM: xterm-color
run: |
set -eux
STATUS=
Expand Down

0 comments on commit 427e5ff

Please sign in to comment.