Skip to content

Completed Artifact

Completed Artifact #37

Workflow file for this run

name: Black
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
jobs:
black:
name: Format Python files with Black
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Black
run: pip install black
- name: Run Black
run: black .
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Auto-format Python files with Black"