From 4758f3ad93328abd71b213054a7ee92f1701e448 Mon Sep 17 00:00:00 2001 From: Soham Gundewar <92445205+SPGundewar@users.noreply.github.com> Date: Fri, 1 Nov 2024 15:46:38 -0400 Subject: [PATCH] Create autopep8.yml adding style checker --- .github/workflows/autopep8.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/autopep8.yml diff --git a/.github/workflows/autopep8.yml b/.github/workflows/autopep8.yml new file mode 100644 index 0000000..fd2751b --- /dev/null +++ b/.github/workflows/autopep8.yml @@ -0,0 +1,25 @@ +name: autopep8 + +on: + push: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install autopep8 + - name: Analysing the code with autopep8 + run: | + autopep8 $(git ls-files '*.py') --diff --aggressive