diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index baf87d9a01..f1346a3d5b 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -23,9 +23,9 @@ jobs: uses: actions/checkout@v4 - name: Setup python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: - python-version: 3.x + python-version-file: "pyproject.toml" - name: Install pnpm uses: pnpm/action-setup@v4 @@ -51,3 +51,8 @@ jobs: - name: Auto-fix pre-commit issues uses: pre-commit-ci/lite-action@v1.0.2 if: always() + + - name: Pyright + uses: jakebailey/pyright-action@v3 + with: + pylance-version: latest-release diff --git a/pyproject.toml b/pyproject.toml index d56a878ce4..109c3fea92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,8 @@ +[project] +name = "cursorless" +version = "0.1.0" +requires-python = "==3.13.*" + [tool.ruff] target-version = "py313" extend-exclude = ["vendor", "data/playground/**/*.py"] @@ -7,6 +12,7 @@ select = ["E", "F", "C4", "I001", "UP", "SIM", "FLY"] ignore = ["E501", "SIM105", "UP007", "UP035", "UP045"] [tool.pyright] +pythonVersion = "3.13" reportSelfClsParameterName = false reportMissingModuleSource = false reportMissingImports = false