From 9111c5dbc1830248305fb075587a88be07ad3115 Mon Sep 17 00:00:00 2001 From: Ftps <63702646+Tps-F@users.noreply.github.com> Date: Sat, 15 Apr 2023 12:00:19 +0900 Subject: [PATCH] Add workflow for automatic formatting --- .github/workflows/black.yml | 16 ++++++++++++++++ 1 file changed, 16 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..e80419c --- /dev/null +++ b/.github/workflows/black.yml @@ -0,0 +1,16 @@ +name: Black + +on: [push, pull_request] + +jobs: + format_code: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - run: pip install --upgrade pip + - run: pip install black[jupyter] + - run: black $(git ls-files '*.py' 'ipynb')