Fix missing | None for nullable enum literals in TypedDict #1315
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: Lint | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| pull_request_target: | |
| types: [labeled] | |
| jobs: | |
| lint: | |
| if: | | |
| github.event_name == 'push' || | |
| github.event_name == 'pull_request' || | |
| (github.event_name == 'pull_request_target' && github.event.label.name == 'safe-to-fix' && | |
| (github.event.sender.login == 'koxudaxi' || | |
| github.event.sender.login == 'gaborbernat' || | |
| github.event.sender.login == 'ilovelinux')) | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout for forks (no PAT available, auto-commit won't run anyway) | |
| - uses: actions/checkout@v4 | |
| if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| # Checkout for same-repo PRs, pushes, and pull_request_target (PAT for auto-commit and workflow retrigger) | |
| - uses: actions/checkout@v4 | |
| if: github.event_name == 'push' || github.event_name == 'pull_request_target' || github.event.pull_request.head.repo.full_name == github.repository | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref || github.ref }} | |
| repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} | |
| token: ${{ secrets.PAT }} | |
| - uses: astral-sh/setup-uv@v5 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.14" | |
| - run: SKIP=readme,config-types,schema-docs uvx prek run --all-files --show-diff-on-failure | |
| - if: | | |
| github.event_name == 'push' || | |
| github.event.pull_request.head.repo.full_name == github.repository || | |
| github.actor == 'koxudaxi' || | |
| github.actor == 'gaborbernat' || | |
| github.actor == 'ilovelinux' || | |
| (github.event_name == 'pull_request_target' && github.event.label.name == 'safe-to-fix' && | |
| (github.event.sender.login == 'koxudaxi' || | |
| github.event.sender.login == 'gaborbernat' || | |
| github.event.sender.login == 'ilovelinux')) | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "style: auto-fix by prek" |