From 83bb49ca42d2d2b4bc8351bbba4b39df006a1433 Mon Sep 17 00:00:00 2001 From: Pierre Equoy Date: Tue, 9 Apr 2024 17:09:56 +0800 Subject: [PATCH] Add black GitHub Action --- .github/workflows/black.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/black.yml diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml new file mode 100644 index 000000000..91c02fb08 --- /dev/null +++ b/.github/workflows/black.yml @@ -0,0 +1,17 @@ +name: Black formatting (79 chars lines) + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: psf/black@stable + with: + options: "--check --diff --line-length 79"