diff --git a/.github/workflows/black-lint.yml b/.github/workflows/black-lint.yml new file mode 100644 index 0000000..3631ed0 --- /dev/null +++ b/.github/workflows/black-lint.yml @@ -0,0 +1,21 @@ +name: Lint with black + +on: + push: + paths: + - 'src/**.py' + - 'tests/**.py' + pull_request: + branches: + - main + paths: + - 'src/**.py' + - 'tests/**.py' + +jobs: + lint: + name: Run black + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: psf/black@24.4.2