aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-08-16 14:27:16 -0400
committerEli Schwartz <eschwartz@archlinux.org>2023-08-18 15:38:13 -0400
commit253df6f9f821a3052b56673d5427aca9dfe41eba (patch)
tree9527daf6167e111b03980eed2a600e97397b20de
parent1ed619d1965e0fa4aa6dadae88843e923ff0d198 (diff)
downloadmeson-253df6f9f821a3052b56673d5427aca9dfe41eba.zip
meson-253df6f9f821a3052b56673d5427aca9dfe41eba.tar.gz
meson-253df6f9f821a3052b56673d5427aca9dfe41eba.tar.bz2
CI: make linters emit colored output
Github Actions supports this fine, but is misdetected by flake8/mypy. Even though pylint defaults to text instead of colorized, we might as well do the right thing here though.
-rw-r--r--.github/workflows/lint.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 2c8d3e1..547a520 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -27,7 +27,7 @@ jobs:
with:
python-version: '3.x'
- run: python -m pip install pylint
- - run: pylint mesonbuild
+ - run: pylint --output-format colorized mesonbuild
flake8:
runs-on: ubuntu-latest
@@ -37,7 +37,7 @@ jobs:
with:
python-version: '3.x'
- run: python -m pip install flake8
- - run: flake8 mesonbuild/
+ - run: flake8 --color always mesonbuild/
mypy:
runs-on: ubuntu-latest
@@ -50,3 +50,5 @@ jobs:
- run: python run_mypy.py --allver
env:
PYTHONUNBUFFERED: 1
+ TERM: xterm-color
+ MYPY_FORCE_COLOR: 1