Skip to content

Commit 92eeeab

Browse files
authored
Merge pull request #37 from codecov/swatinem/mypy-all-the-things
Update `mypy` and run it on all the files
2 parents 0584651 + 8d3fe38 commit 92eeeab

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/workflows/mypy.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,16 @@ on:
66
extra_config:
77
type: string
88
required: false
9-
default: ''
10-
description: 'Extra configuration for mypy'
9+
default: ""
10+
description: "Extra configuration for mypy"
1111

1212
jobs:
1313
static-type-check:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-python@v3
18-
with:
19-
python-version: '3.12'
20-
- run: pip install mypy==1.10.0
21-
- name: Get Python changed files
22-
id: changed-py-files
23-
uses: tj-actions/[email protected]
24-
with:
25-
files: |
26-
*.py
27-
**/*.py
28-
- name: Run if any of the listed files above is changed
29-
if: steps.changed-py-files.outputs.any_changed == 'true'
30-
run: mypy ${{ steps.changed-py-files.outputs.all_changed_files }} --ignore-missing-imports ${{ inputs.extra_config }}
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.12"
20+
- run: pip install mypy==1.13.0
21+
- run: mypy . --ignore-missing-imports ${{ inputs.extra_config }}

0 commit comments

Comments
 (0)