Skip to content

Commit

Permalink
try autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
ncullen93 committed Feb 16, 2024
1 parent 9c16fb3 commit c188e6a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/black.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: autopep8
on: pull_request
jobs:
autopep8:
# Check if the PR is not from a fork
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
ref: ${{ github.head_ref }}
- name: autopep8
id: autopep8
uses: peter-evans/autopep8@v2
with:
args: --exit-code --recursive --in-place --aggressive --aggressive .
- name: Commit autopep8 changes
if: steps.autopep8.outputs.exit-code == 2
run: |
git config --global user.name 'Peter Evans'
git config --global user.email '[email protected]'
git commit -am "Automated autopep8 fixes"
git push

0 comments on commit c188e6a

Please sign in to comment.