summaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/ci.yml
blob: 1f6bc38085600b74451131f0d7a4fbe2beb5f486 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: CI

on:
  push:
  workflow_dispatch:

jobs:
  lint:
    runs-on: ubuntu-latest
    name: Linting
    steps:
      - name: Checkout
        uses: actions/checkout@v7
      - name: Set up Python
        uses: actions/setup-python@v6
        with:
          python-version: '3.x'
      - name: Run black
        uses: psf/black@stable
        with:
          # https://black.readthedocs.io/en/stable/integrations/github_actions.html#cli-options
          #     Please note that the --check flag is required so that the workflow fails if Black finds files that need to be formattedPlease note that the --check flag is required so that the workflow fails if Black finds files that need to be formatted.
          # ^^^ I don't even have words for this.
          options: --skip-string-normalization --check