From 5d745c5d80405b9e313ab48c9e3d5c14785cee43 Mon Sep 17 00:00:00 2001 From: rsashank Date: Mon, 15 Jan 2024 13:01:35 +0530 Subject: [PATCH] workflows: Flake8 based linting for .py files --- .github/workflows/linting.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/linting.yml diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 0000000..4b3e8c9 --- /dev/null +++ b/.github/workflows/linting.yml @@ -0,0 +1,25 @@ +name: Linting + +on: + push: + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + flake8: + runs-on: ubuntu-latest + name: Lint - PEP8 & more (flake8) + outputs: + id: check-python-files + value: ${{ steps.set-output.value }} + steps: + - uses: actions/checkout@v3 + - name: Install dependencies + run: pip install flake8 + + - name: Run flake8 + run: flake8 \ No newline at end of file