Fix incorrect executables detected by the prek builtin checks #2109
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: Static code checkers | |
| on: [push] | |
| permissions: {} | |
| env: | |
| PREK_COLOR: "always" | |
| jobs: | |
| whitespace: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/uv-setup | |
| - run: prek -a trailing-whitespace end-of-file-fixer | |
| executables: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/uv-setup | |
| - run: prek -a check-shebang-scripts-are-executable check-executables-have-shebangs | |
| mypy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/uv-setup | |
| - name: Create a dummy data.py | |
| run: cp data.py-dist data.py | |
| - name: Create a dummy vm_data.py | |
| run: cp vm_data.py-dist vm_data.py | |
| - run: prek -a mypy | |
| pyright: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/uv-setup/ | |
| - name: Create a dummy data.py | |
| run: cp data.py-dist data.py | |
| - name: Create a dummy vm_data.py | |
| run: cp vm_data.py-dist vm_data.py | |
| - run: prek -a pyright | |
| ruff: | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_COLOR: "1" | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/uv-setup/ | |
| - name: Create a dummy data.py | |
| run: cp data.py-dist data.py | |
| - run: prek -a ruff | |
| flake8: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/uv-setup/ | |
| - run: prek -a flake8 |