Skip to content

Merge pull request #6 from IsaacCheng9/dependabot/pip/black-24.3.0 #12

Merge pull request #6 from IsaacCheng9/dependabot/pip/black-24.3.0

Merge pull request #6 from IsaacCheng9/dependabot/pip/black-24.3.0 #12

Workflow file for this run

name: Format
on: [push]
jobs:
format:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.12.x]
steps:
- uses: actions/checkout@v3
- name: Run Python code formatting with Black
uses: lgeiger/[email protected]
with:
args: "."
- name: Commit changes made by Black
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Format Python code with Black
- name: Switch to current branch
run: git checkout ${{ env.BRANCH }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}