Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autopep8 format check action #280

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
28 changes: 28 additions & 0 deletions .github/workflows/python-formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Enforce Python Code Formatting

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
format-check:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12.2'

- name: Install autopep8
run: pip install autopep8

- name: Run autopep8
run: autopep8 --ignore=E501 --diff --exit-code -r .
Loading