diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml new file mode 100644 index 0000000..4c628e3 --- /dev/null +++ b/.github/workflows/black.yml @@ -0,0 +1,28 @@ +name: Black Formatter Check + +on: + push: + branches: + - main + paths: + - '**.py' + pull_request: + branches: + - main + paths: + - '**.py' + +jobs: + Check_With_Black: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v3 + - name: Set up Python 3.x + uses: actions/setup-python@v4 + with: + python-version: 3.x + - name: Install dependencies + run: python -m pip install --upgrade pip && pip install black + - name: Run Black formatter check + run: black --check .