feat: migrate pyrefly to ty #11
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: Prek Auto Fix | |
| on: | |
| pull_request: | |
| branches: [main,stable] | |
| permissions: | |
| contents: write | |
| jobs: | |
| prek-fix: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| fetch-depth: 0 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Check lock file consistency | |
| run: uv sync --locked --all-extras --all-groups | |
| - name: Run prek on PR changes | |
| run: | | |
| uv run prek run --origin origin/${{ github.base_ref }} --source HEAD || true | |
| - name: Auto Commit Fixes | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| commit_message: "chore: auto fixes by prek" |