Skip to content

Commit

Permalink
Add Formatter.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
aoki-h-jp committed Aug 25, 2023
1 parent 3908ef8 commit 41c01d0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/Formatter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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

0 comments on commit 41c01d0

Please sign in to comment.