Skip to content

Commit

Permalink
Add mypy 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hramezani committed Aug 14, 2023
1 parent fb74946 commit 0741a3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 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 @@ -211,6 +211,11 @@ jobs:
if [ ${{ matrix.mypy-version }} != 'lockfile' ]; then
pdm remove -G linting mypy && pdm remove -G mypy mypy && pdm add mypy==${{ matrix.mypy-version }}
fi
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
pdm remove typing-extensions && pdm add 'mypy==1.5.0'
fi
pdm list
- run: mkdir coverage
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 0741a3a

Please sign in to comment.