From 308a9bbe9adde6b1fea390215f1d59a057e844c9 Mon Sep 17 00:00:00 2001 From: Zach Lagden Date: Mon, 3 Jun 2024 10:54:07 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Create=20black-lint.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/black-lint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/black-lint.yml diff --git a/.github/workflows/black-lint.yml b/.github/workflows/black-lint.yml new file mode 100644 index 0000000..6faad20 --- /dev/null +++ b/.github/workflows/black-lint.yml @@ -0,0 +1,23 @@ +name: Lint with black + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install black + - name: Analysing the code with black + run: | + black --check .