Skip to content

Commit

Permalink
add flake 8 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VigneshVSV committed Sep 10, 2024
1 parent 12925f4 commit 8ad8131
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/flake8-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lint with Flake8

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

jobs:
lint:
runs-on: ubuntu-latest

steps:
# Checkout the code from the repository
- name: Checkout code
uses: actions/checkout@v3

# Set up Python with the specified version
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11' # Replace '3.x' with the desired Python version (e.g., '3.9')

# Install flake8 and any additional dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
# Run flake8 on the specified directories/files
- name: Run flake8
run: |
flake8 . --exclude=*.pyc --max-line-length=120 --count

0 comments on commit 8ad8131

Please sign in to comment.