From 514ec64f67ba44b3273cadf944f148dffc8f5b31 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 3 Feb 2026 21:59:46 +0000 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 5 ++++- pyproject.toml | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8919b8f..2fa56e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,12 +43,15 @@ jobs: - name: Install dependencies run: | - pip install mypy + pip install mypy pyright pip install -e . - name: Run mypy run: mypy kdumpling + - name: Run pyright + run: pyright kdumpling + test: name: Test (Python ${{ matrix.python-version }}) runs-on: ubuntu-latest diff --git a/pyproject.toml b/pyproject.toml index f328c4c..5dc61d3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,6 +85,13 @@ ignore_missing_imports = true module = "kdumpfile.*" ignore_missing_imports = true +[tool.pyright] +pythonVersion = "3.8" +include = ["kdumpling"] +typeCheckingMode = "standard" +reportMissingImports = true +reportMissingTypeStubs = false + [tool.pytest.ini_options] testpaths = ["tests"] python_files = ["test_*.py"]