Skip to content

Commit

Permalink
workflows: Flake8 based linting for .py files
Browse files Browse the repository at this point in the history
  • Loading branch information
rsashank committed Apr 9, 2024
1 parent af2fedb commit 5d745c5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5d745c5

Please sign in to comment.