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"]