Skip to content

Add flake8 config and GitHub Actions workflow for linting.Add python linter #1

Add flake8 config and GitHub Actions workflow for linting.Add python linter

Add flake8 config and GitHub Actions workflow for linting.Add python linter #1

Workflow file for this run

name: Python Linter
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Run flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics