added pythong linting using flake8

This commit is contained in:
klein panic
2024-10-31 21:49:05 -04:00
parent c941b01cfa
commit b00fc25044
4 changed files with 137 additions and 0 deletions

31
.github/workflows/lint.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Python Linting
on:
push:
branches:
- '**' # Match all branches
pull_request:
branches:
- '**' # Match all branches
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m venv venv # Create a virtual environment in the project root
./venv/bin/pip install -r requirements.txt # Install dependencies from requirements.txt
- name: Run Flake8
run: |
./venv/bin/flake8 . --config=.flake8 # Run flake8 using the configuration in .flake8