Skip to content

Commit 4de0561

Browse files
committed
feat: add type checking
Add optional mypy type checking
1 parent d5723a9 commit 4de0561

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci-uv.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ on:
2222
required: false
2323
type: string
2424
default: "tests"
25+
run-mypy:
26+
description: "Whether to run mypy for typing checks (true/false)"
27+
required: false
28+
type: boolean
29+
default: false
2530
secrets:
2631
repo-token:
2732
description: GitHub token for checkout/PR operations
@@ -55,6 +60,9 @@ jobs:
5560
run: |
5661
uv run --frozen ruff format --check --diff .
5762
uv run --frozen ruff check --output-format=github .
63+
- name: Mypy (typing check)
64+
if: ${{ inputs.run-mypy }}
65+
run: uv run --frozen mypy ${{ inputs.package-name }}
5866
- name: Interrogate (docstring coverage)
5967
run: uv run --frozen interrogate -v
6068
- name: Codespell (typo checker)

0 commit comments

Comments
 (0)