Skip to content

Commit

Permalink
Add mypy 1.5.0 (#7118)
Browse files Browse the repository at this point in the history
  • Loading branch information
hramezani committed Aug 16, 2023
1 parent 6e3e931 commit d142a03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -180,7 +180,7 @@ jobs:
matrix:
# test recent mypy versions on 3.10 and mypy 1.0.1 on all supported python versions
# if you change the value in the lockfile add the old value to this list
mypy-version: ['1.0.1', 'lockfile', '1.2.0', '1.4.1']
mypy-version: ['1.0.1', 'lockfile', '1.2.0', '1.4.1', '1.5.0']
python-version: ['3.10']
include:
- mypy-version: 'lockfile'
Expand Down Expand Up @@ -208,6 +208,10 @@ jobs:
- name: install mypy
if: steps.cache.outputs.cache-hit != 'true'
run: |
if [ ${{ matrix.mypy-version }} == '1.5.0' ]; then
# mypy 1.5.0 only supports 3.8 and newer, so adjust pyproject.toml
sed -i "s/requires-python = '>=3.7'/requires-python = '>=3.8'/g" pyproject.toml
fi
if [ ${{ matrix.mypy-version }} != 'lockfile' ]; then
pdm remove -G linting mypy && pdm remove -G mypy mypy && pdm add mypy==${{ matrix.mypy-version }}
fi
Expand Down
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -55,6 +55,7 @@ test-mypy-update-all: .pdm
pip install --force mypy==1.1.1 && make test-mypy-update
pip install --force mypy==1.2.0 && make test-mypy-update
pip install --force mypy==1.4.1 && make test-mypy-update
pip install --force mypy==1.5.0 && make test-mypy-update

.PHONY: test-pyright ## Run the pyright integration tests
test-pyright: .pdm
Expand Down

0 comments on commit d142a03

Please sign in to comment.