.github/workflows/lint.yml
raw| 1 | name: Lint code |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | pull_request: |
| 6 | branches-ignore: [ master ] |
| 7 | |
| 8 | permissions: |
| 9 | contents: read |
| 10 | |
| 11 | jobs: |
| 12 | lint: |
| 13 | runs-on: ubuntu-latest |
| 14 | |
| 15 | steps: |
| 16 | - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 17 | - name: Set up Python 3.9 |
| 18 | uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 |
| 19 | with: |
| 20 | python-version: 3.9 |
| 21 | - name: Run pre-commit |
| 22 | uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 |