From 7e3556e5f640b63103d92b2f749f7aef6f3d5d44 Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 22 Jun 2020 12:22:43 +0300 Subject: [PATCH] GHA: Force colour output of pre-commit --- .github/workflows/lint.yml | 4 +++- tox.ini | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6c5d81ac4..64296b377 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v2 - name: pip cache - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cache/pip key: lint-pip-${{ hashFiles('**/setup.py') }} @@ -46,4 +46,6 @@ jobs: - name: Lint run: tox -e lint + env: + PRE_COMMIT_COLOR: always diff --git a/tox.ini b/tox.ini index 8005888d4..aa6875374 100644 --- a/tox.ini +++ b/tox.ini @@ -30,3 +30,4 @@ deps = pre-commit check-manifest skip_install = true +passenv = PRE_COMMIT_COLOR