Skip to content

Merge branch 'main' of github.com:aangelopoulos/ppi_py #91

Merge branch 'main' of github.com:aangelopoulos/ppi_py

Merge branch 'main' of github.com:aangelopoulos/ppi_py #91

Workflow file for this run

name: Auto-format with Black
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
auto-format:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Black
run: |
python -m pip install --upgrade pip
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 -A
git commit -m "Auto-format with Black" || echo "No changes to commit"
git push