Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

build(pre-commit): pin ruff to the version CI installs

Bingxi Zhao (Frank)3e82f130422a
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 191de9023..cc430ff54 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -48,8 +48,11 @@ repos:
# ============================================
# Python code formatting and linting
# ============================================
+ # Pinned to the version CI installs (.github/workflows/tests.yml). A drift
+ # here is invisible until it matters: the hook formats a file one way, then
+ # CI's `ruff format --check .` judges it with a different version.
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.14.7
+ rev: v0.16.0
hooks:
- id: ruff
# Keep local fixes, but fail the hook when Ruff reports remaining violations.