Skip to content

Commit c28a349

Browse files
committed
Allow mypy to show color output
Before this change, the `TERM` environment variable was set to `dumb`, which mypy interprets as being unable to display color. This means that even the `FORCE_COLOR` environment variable does not force mypy to output color. This change sets the `TERM` environment variable to allow mypy to output colors, making the mypy output easier to identify and interpret in CI. See python/mypy#13817 for more information about this problem.
1 parent e78e2cc commit c28a349

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
- run: echo $TERM
4646
- run: tox run-parallel --parallel-no-spinner
4747
env:
48+
TERM: xterm-256color
4849
FORCE_COLOR: "1"
4950
DEFAULT_DATABASE_URL: postgres://postgres:postgres@localhost/subatomic
5051
OTHER_DATABASE_URL: postgres://postgres:postgres@localhost/subatomic_other

0 commit comments

Comments
 (0)