From 017f3e7842b06bd89bcf3f4e66b5c9bae10fd5b9 Mon Sep 17 00:00:00 2001 From: philiporlando Date: Sat, 30 Dec 2023 21:36:25 -0800 Subject: [PATCH] use black styler --- .github/workflows/python-style.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/python-style.yml diff --git a/.github/workflows/python-style.yml b/.github/workflows/python-style.yml new file mode 100644 index 0000000..9b8d366 --- /dev/null +++ b/.github/workflows/python-style.yml @@ -0,0 +1,22 @@ +name: Python Style Checker + +on: [push, pull_request] + +jobs: + style-check: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.10', '3.11', '3.12'] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install Dependencies + run: | + pip install black + - name: Check Python style + run: black --check .