From 22305be24653b1a05223e7ce9808e7786f91ea5d Mon Sep 17 00:00:00 2001 From: Seniya Tuscano Date: Wed, 16 Sep 2026 18:30:39 -0500 Subject: [PATCH 1/2] Add GitHub Actions workflow for Python linting (Resolves #90) --- .github/workflows/lint.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8ceb4c6..562db11 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,25 +1,34 @@ -name: Lint --flake8 +name: Python Linting on: pull_request: + types: [opened, synchronize, reopened] branches: - main jobs: lint: + name: Lint Python Files runs-on: ubuntu-latest + steps: - - name: Checkout code - uses: actions/checkout@v3 + - name: Checkout repository + uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: '3.x' + python-version: '3.11' + cache: 'pip' - - name: Install flake8 + - name: Install dependencies run: | + python -m pip install --upgrade pip pip install flake8 - - name: Run flake8 - run: flake8 . \ No newline at end of file + - name: Run flake8 linter + run: | + # Stop build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # Exit-zero treats all errors as warnings (or remove --exit-zero to enforce style strictly) + flake8 . --count --max-complexity=10 --max-line-length=127 --statistics From 7eb8216dbe16e3e41f48ab6bf57940fd666379ca Mon Sep 17 00:00:00 2001 From: Seniya Tuscano Date: Thu, 8 Oct 2026 17:04:37 -0500 Subject: [PATCH 2/2] chore: remove unnecessary GitHub Actions workflow --- .github/workflows/lint.yml | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 562db11..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Python Linting - -on: - pull_request: - types: [opened, synchronize, reopened] - branches: - - main - -jobs: - lint: - name: Lint Python Files - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.11' - cache: 'pip' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 - - - name: Run flake8 linter - run: | - # Stop build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # Exit-zero treats all errors as warnings (or remove --exit-zero to enforce style strictly) - flake8 . --count --max-complexity=10 --max-line-length=127 --statistics