Repository navigation
Read custom graphemes from state file #10373
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pre-commit | |
| permissions: read-all | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| merge_group: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| pre-commit: | |
| name: Pre-commit | |
| runs-on: ubuntu-latest | |
| env: | |
| CURSORLESS_REPO_ROOT: ${{ github.workspace }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Setup python | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version-file: "pyproject.toml" | |
| - name: Set up Node.js | |
| uses: ./.github/actions/setup-node | |
| # pre-commit passes --allow-git=root when installing Node hooks. npm 11 | |
| # rejects the hook repository's git dependency despite that setting. | |
| - name: Use npm 10 for pre-commit Node hooks | |
| run: npm install --global npm@10.9.4 | |
| - name: Install lua | |
| uses: leafo/gh-actions-lua@v12 | |
| - name: Install luarocks | |
| uses: leafo/gh-actions-luarocks@v6 | |
| - name: Run pre-commit hooks | |
| uses: pre-commit/action@v3.0.1 | |
| - name: Pyright | |
| uses: jakebailey/pyright-action@v3 | |
| with: | |
| pylance-version: latest-release | |
| - name: pre-commit-ci-lite | |
| uses: pre-commit-ci/lite-action@v1.2.0 | |
| if: always() |