Skip to content

Commit

Permalink
Merge pull request #21 from fusion-energy/develop
Browse files Browse the repository at this point in the history
added pep8 formatter
  • Loading branch information
shimwell authored Nov 1, 2021
2 parents 5f645ac + f0b8e21 commit 8ff9f34
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: black

on:
push:
paths:
- '**.py'

defaults:
run:
shell: bash

jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install black
run: |
python -m pip install --upgrade pip
pip install black
- name: Run black
run: |
black .
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "[skip ci] Apply formatting changes"

0 comments on commit 8ff9f34

Please sign in to comment.