From e251364ece3dc6df8f1e82f4b64bbdcfaaac42b3 Mon Sep 17 00:00:00 2001 From: Harsh <115716485+Kaos599@users.noreply.github.com> Date: Mon, 28 Oct 2024 00:54:27 +0530 Subject: [PATCH] Create black.yml --- .github/workflows/black.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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 0000000..597743e --- /dev/null +++ b/.github/workflows/black.yml @@ -0,0 +1,22 @@ +name: Lint Code Base + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install Black + run: pip install black + + - name: Run Black + run: black --check --diff package/