Skip to content

Merge pull request #17 from aoki-h-jp/aoki-h-jp-patch-1 #69

Merge pull request #17 from aoki-h-jp/aoki-h-jp-patch-1

Merge pull request #17 from aoki-h-jp/aoki-h-jp-patch-1 #69

Workflow file for this run

name: Format code
on: push
jobs:
formatter:
name: formatter
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11.0]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install autoflake black isort
- name: autoflake
run: autoflake -r .
- name: black
run: black .
- name: isort
run: isort .
- name: Auto Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply Code Formatter Change