From cf98a9048ad19b1666322e07366f35d003dac9f7 Mon Sep 17 00:00:00 2001 From: Gosuto Inzasheru Date: Sun, 21 Apr 2024 16:04:55 +0400 Subject: [PATCH] ci: black workflow --- .github/workflows/black.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/black.yaml diff --git a/.github/workflows/black.yaml b/.github/workflows/black.yaml new file mode 100644 index 0000000..1f90dbb --- /dev/null +++ b/.github/workflows/black.yaml @@ -0,0 +1,21 @@ +name: Lint + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4.1.1 + + - name: Black + uses: psf/black@stable + with: + options: "--verbose" + version: "24.4.0" + + - name: Auto commit + uses: stefanzweifel/git-auto-commit-action@v5.0.1 + with: + commit_message: "style: ci lint with `black`"