Skip to content

Commit 3502085

Browse files
claudesdimitro
authored andcommitted
Add pyright type checking to CI
Add pyright configuration to pyproject.toml with Python 3.8 target and standard type checking mode. Update CI workflow to run pyright alongside mypy for comprehensive static type analysis. https://claude.ai/code/session_01Gd2A7snivVDScKhBuzcztE
1 parent 7478737 commit 3502085

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,15 @@ jobs:
4343

4444
- name: Install dependencies
4545
run: |
46-
pip install mypy
46+
pip install mypy pyright
4747
pip install -e .
4848
4949
- name: Run mypy
5050
run: mypy kdumpling
5151

52+
- name: Run pyright
53+
run: pyright kdumpling
54+
5255
test:
5356
name: Test (Python ${{ matrix.python-version }})
5457
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ ignore_missing_imports = true
8585
module = "kdumpfile.*"
8686
ignore_missing_imports = true
8787

88+
[tool.pyright]
89+
pythonVersion = "3.8"
90+
include = ["kdumpling"]
91+
typeCheckingMode = "standard"
92+
reportMissingImports = true
93+
reportMissingTypeStubs = false
94+
8895
[tool.pytest.ini_options]
8996
testpaths = ["tests"]
9097
python_files = ["test_*.py"]

0 commit comments

Comments
 (0)