Skip to content

README

README #53

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: # Allows manual trigger for testing
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3 # Updated to v3
- name: Set up Python
uses: actions/setup-python@v3 # Updated to v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install Linting Tools
run: |
pip install flake8 flake8-bugbear flake8-docstrings
- name: Run flake8 linting
run: |
flake8 src --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 src --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
- name: Display Linting Report
if: failure()
run: |
echo "Linting completed with issues. Review the report above."