diff --git a/.github/workflows/format-black.yml b/.github/workflows/format-black.yml new file mode 100644 index 0000000..94e591a --- /dev/null +++ b/.github/workflows/format-black.yml @@ -0,0 +1,16 @@ +name: Format with black +on: [push, pull_request] + +jobs: + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Format files using the black formatter + uses: rickstaa/action-black@v1 + id: action_black + with: + black_args: "." + - uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: Formatted with black \ No newline at end of file