Exclude venv from flake8 and black in GitHub Actions

This commit is contained in:
Russell Ballestrini 2026-01-11 11:55:41 -05:00
parent 237888a6ab
commit ae875a7269

View file

@ -81,16 +81,16 @@ jobs:
- name: Check code formatting with black
run: |
black --check --diff .
black --check --diff --exclude=venv .
continue-on-error: true
- name: Lint with flake8 (syntax errors)
run: |
# Stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=venv
- name: Lint with flake8 (style warnings)
run: |
# Exit-zero treats all errors as warnings
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=venv
continue-on-error: true