fix: pin ruff version to 0.12.7 across all environments

- Pin ruff==0.12.7 in pyproject.toml dev dependencies
- Update CI to use exact ruff version instead of latest
- Add comments explaining version pinning rationale
- Ensures consistent formatting across local, CI, and pre-commit
This commit is contained in:
Andy Lee
2025-08-06 22:56:32 -07:00
parent 6061e8f2de
commit ada8bcbc70
3 changed files with 4 additions and 4 deletions

View File

@@ -26,9 +26,9 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Install ruff
- name: Install dependencies with ruff
run: |
uv tool install ruff
uv pip install --system ruff==0.12.7
- name: Run ruff check
run: |

View File

@@ -10,7 +10,7 @@ repos:
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.7
rev: v0.12.7 # Fixed version to match pyproject.toml
hooks:
- id: ruff
- id: ruff-format

View File

@@ -52,7 +52,7 @@ dev = [
"pytest-cov>=4.0",
"pytest-xdist>=3.0", # For parallel test execution
"black>=23.0",
"ruff>=0.1.0",
"ruff==0.12.7", # Fixed version to ensure consistent formatting across all environments
"matplotlib",
"huggingface-hub>=0.20.0",
"pre-commit>=3.5.0",