diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a540df4ea4..a8e0d793c8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -74,3 +74,9 @@ jobs: if: failure() - name: Forbid TODOs run: ./scripts/forbid-todo.sh + + - name: Pyright + uses: jakebailey/pyright-action@v2 + with: + version: 1.1.311 # Optional (change me!) + python-version: 3.11 diff --git a/pyproject.toml b/pyproject.toml index 8b383b8011..5adfd18020 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,4 +14,14 @@ target-version = "py311" extend-exclude = ["vendor", "data/playground/**/*.py"] [tool.pyright] +# Talon classes don't use self so ignore the associated errors reportSelfClsParameterName = false + +# Ignore the type of parameter X must be a supertype of its class +# reportGeneralTypeIssues = false + +# Imgui functions return an object that can't be statically resolved +reportFunctionMemberAccess = false +# Talon can't be installed in CI so ignore source errors +reportMissingModuleSource = false +reportMissingImports = false