Merge pull request #427 from NCAR/425-allow-building-without-pypartmc #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto format python code with PEP8 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
autopep8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install autopep8 | |
run: pip install autopep8 | |
- name: Run autopep8 | |
run: autopep8 --recursive --in-place --aggressive --max-line-length 120 . | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: autopep8 action fixes | |
title: Fixes by autopep8 action | |
body: This is an auto-generated PR with fixes by autopep8. | |
branch: autopep8-patches |