.github/workflows/lint.yml
raw| 1 | name: Lint |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - main |
| 7 | |
| 8 | jobs: |
| 9 | lint: |
| 10 | runs-on: ubuntu-latest |
| 11 | steps: |
| 12 | - name: Checkout code |
| 13 | uses: actions/checkout@v4 |
| 14 | |
| 15 | - uses: actions/setup-python@v5 |
| 16 | with: |
| 17 | python-version: "3.11" |
| 18 | |
| 19 | - name: Run black check |
| 20 | uses: psf/black@stable |
| 21 | with: |
| 22 | options: "--check --diff" |
| 23 | |
| 24 | - name: Run isort check |
| 25 | uses: isort/isort-action@master |
| 26 | with: |
| 27 | configuration: "--check-only --diff --profile black" |