From 5b4f2dc10939b84f6da4076cf9e52956175051ad Mon Sep 17 00:00:00 2001 From: Keon Lee Date: Tue, 10 Oct 2023 15:21:12 +0900 Subject: [PATCH] feat: add black formatter to CI This change is needed to ensure that the codebase is formatted consistently and follows the black formatter guidelines. This will help improve code readability and maintainability. This change adds a GitHub Actions workflow that runs the black formatter on every push and pull request. The workflow uses the rickstaa/action-black@v1 action to format the codebase and the stefanzweifel/git-auto-commit-action@v5 action to automatically commit the changes. N/A --- .github/workflows/format-black.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/format-black.yml 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