Skip to content

Commit 976f229

Browse files
committed
enable mypy if not python3.13.5
1 parent 6a826b2 commit 976f229

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/python_checks.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ jobs:
221221
# - runner: ubuntu-latest
222222
# python-version: "3.14"
223223

224+
# mypy hard coded to avoid 3.13.5
224225
- runner: ubuntu-latest
225226
python-version: "3.13.5"
226227

@@ -251,13 +252,13 @@ jobs:
251252
cfg-file: ${{ inputs.cfg-file }}
252253
pip-installs: ${{ inputs.pip-installs }}
253254

254-
#- name: Lint with mypy
255-
# if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check-prereleases == 'true') && inputs.mypy-packages != '' }}
256-
# run: mypy --python-version ${{ matrix.python-version }} ${{ inputs.mypy-packages }}
255+
- name: Lint with mypy
256+
if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check-prereleases == 'true') && (inputs.mypy-packages != '') && (matrix.python-version != '3.13.5') }}
257+
run: mypy --python-version ${{ matrix.python-version }} ${{ inputs.mypy-packages }}
257258

258-
# - name: Lint with mypy using disallow-untyped-def
259-
# if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check-prereleases == 'true') && inputs.mypy-full-packages != '' }}
260-
# run: mypy --python-version ${{ matrix.python-version }} --disallow-untyped-defs ${{ inputs.mypy-full-packages }}
259+
- name: Lint with mypy using disallow-untyped-def
260+
if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check-prereleases == 'true') && (inputs.mypy-packages != '') && (matrix.python-version != '3.13.5') }}
261+
run: mypy --python-version ${{ matrix.python-version }} --disallow-untyped-defs ${{ inputs.mypy-full-packages }}
261262

262263
- name: Lint with flake8
263264
if: ${{ matrix.python-version != env.PRERELEASE || inputs.check-prereleases == 'true' }}

0 commit comments

Comments
 (0)