Merge pull request #17 from aoki-h-jp/aoki-h-jp-patch-1 #69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |