From 11eaf4d341e05871def9e43f9c0b596e9e08e9c2 Mon Sep 17 00:00:00 2001 From: Hayden Foote <36173127+hfoote@users.noreply.github.com> Date: Mon, 27 Oct 2025 15:17:29 -0700 Subject: [PATCH] Replace flake8 with ruff for linting and enable Re-enable linting in CI, also change to ruff instead of flake8 --- .github/workflows/python-package.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index b6ba65f..c9effea 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -27,15 +27,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install flake8 pytest + python -m pip install ruff pytest python -m pip install . - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - # - name: Lint with flake8 - # run: | - # stop the 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. The GitHub editor is 127 chars wide - # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Lint with flake8 + run: | + ruff check - name: Test with pytest run: | pytest