| name: lint | |
| on: | |
| # check on PRs, and manual triggers | |
| merge_group: | |
| pull_request: | |
| paths: | |
| - '**.py' | |
| - 'requirements.txt' | |
| - '.github/workflows/*.yml' | |
| - "*.[q]md" | |
| - "examples/**/*.y[a]?ml" | |
| workflow_dispatch: | |
| jobs: | |
| pre-commit: | |
| name: pre-commit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: 'pip' # caching pip dependencies | |
| - uses: pre-commit/action@v3.0.1 | |