Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

chore: update pre-commit hooks to latest versions (#1035)

LearningCircuit11a4be7ebe97
diff --git a/.github/workflows/text-optimization-tests.yml b/.github/workflows/text-optimization-tests.yml
index 28eaff4015..5018784b00 100644
--- a/.github/workflows/text-optimization-tests.yml
+++ b/.github/workflows/text-optimization-tests.yml
@@ -52,6 +52,6 @@ jobs:
- name: Upload coverage reports
uses: codecov/codecov-action@v5
with:
- file: ./coverage.xml
+ files: ./coverage.xml
flags: text-optimization
name: text-optimization-coverage
diff --git a/.github/workflows/update-precommit-hooks.yml b/.github/workflows/update-precommit-hooks.yml
new file mode 100644
index 0000000000..cff8f42aab
--- /dev/null
+++ b/.github/workflows/update-precommit-hooks.yml
@@ -0,0 +1,67 @@
+name: Update Pre-commit Hooks
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: '0 8 * * 5' # every Friday at 08:00 UTC (day after NPM updates)
+
+jobs:
+ update:
+ name: 🪝 Update Pre-commit Hooks
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write # Required for creating PRs
+ pull-requests: write # Required for creating PRs
+ steps:
+ - name: 📰 Checkout
+ uses: actions/checkout@v5
+ with:
+ ref: main
+
+ - name: 🐍 Setup Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: '3.x'
+
+ - name: 📦 Install pre-commit
+ run: |
+ python -m pip install --upgrade pip
+ pip install pre-commit
+
+ - name: 🔄 Update pre-commit hooks
+ run: |
+ pre-commit autoupdate
+
+ - name: 📝 Check for changes
+ id: verify-changed-files
+ run: |
+ if git diff --quiet .pre-commit-config.yaml; then
+ echo "changed=false" >> "$GITHUB_OUTPUT"
+ echo "No changes detected in .pre-commit-config.yaml"
+ else
+ echo "changed=true" >> "$GITHUB_OUTPUT"
+ echo "Changes detected in .pre-commit-config.yaml"
+ echo "## Changes:" >> "$GITHUB_STEP_SUMMARY"
+ git diff .pre-commit-config.yaml >> "$GITHUB_STEP_SUMMARY"
+ fi
+
+ - name: 📝 Create pull request
+ uses: peter-evans/create-pull-request@v7
+ if: steps.verify-changed-files.outputs.changed == 'true'
+ with:
+ branch: update-precommit-hooks-${{ github.run_number }}
+ title: 🤖 Update pre-commit hooks
+ body: |
+ This PR updates pre-commit hooks to their latest versions.
+
+ **Changes include:**
+ - Updated hook versions for better linting and bug fixes
+ - Ensures consistency with latest tool versions
+
+ This PR was created by the Pre-commit Update Bot.
+ sign-commits: true
+ add-paths: .pre-commit-config.yaml
+ commit-message: 🤖 Update pre-commit hooks
+ labels: maintenance 🔧
+ draft: false
+ base: main
+ reviewers: djpetti,HashedViking,LearningCircuit
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 23d3b1a367..b9226f2d3b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -12,7 +12,7 @@ repos:
- id: forbid-new-submodules
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
- rev: v0.13.2
+ rev: v0.14.4
hooks:
# Run the linter.
- id: ruff
@@ -20,7 +20,7 @@ repos:
# Run the formatter.
- id: ruff-format
- repo: https://github.com/rhysd/actionlint
- rev: v1.7.4
+ rev: v1.7.8
hooks:
- id: actionlint
name: Lint GitHub Actions workflows