summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2024-03-08 10:09:16 -0800
committerDylan Baker <dylan@pnwbakers.com>2024-03-11 07:40:27 -0700
commit675c323b194c098fe95ab0be4635eb1c6a5fa5e3 (patch)
treeba95c864ad27f0851ff1e6a4269d3b145a794010
parentf9479787a01106235e14d2a08a74352f4b1177ef (diff)
downloadmeson-675c323b194c098fe95ab0be4635eb1c6a5fa5e3.tar.gz
CI: pin mypy to version 1.8
Version 1.9 removes support for python 3.7, so we either need to pin the version to 1.8 as long as we're support Python 3.7, or we need to drop linting for 3.7
-rw-r--r--.github/workflows/lint.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 58860bd8c..e8cd37341 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -46,7 +46,8 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- - run: python -m pip install mypy coverage strictyaml types-PyYAML types-tqdm types-chevron
+ # Pin mypy to version 1.8, so we retain the ability to lint for Python 3.7
+ - run: python -m pip install "mypy==1.8" coverage strictyaml types-PyYAML types-tqdm types-chevron
- run: python run_mypy.py --allver
env:
PYTHONUNBUFFERED: 1