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.

fix: Resolve pre-commit check failures

LearningCircuitec02fed1a14f
diff --git a/.github/workflows/responsive-ui-tests-enhanced.yml b/.github/workflows/responsive-ui-tests-enhanced.yml
index 9b3a569755..544d9d847c 100644
--- a/.github/workflows/responsive-ui-tests-enhanced.yml
+++ b/.github/workflows/responsive-ui-tests-enhanced.yml
@@ -198,100 +198,8 @@ jobs:
# Only fail if critical failures
exit "$TEST_EXIT_CODE"
- - name: Generate screenshot gallery
- if: false # Disabled - screenshots not needed in CI
- working-directory: tests/ui_tests
- env:
- VIEWPORT: ${{ matrix.viewport }}
- RUN_ID: ${{ github.run_id }}
- BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
- run: |
- # Create an HTML gallery of screenshots
- cat > screenshot-gallery.html << EOF
- <!DOCTYPE html>
- <html>
- <head>
- <title>UI Test Screenshots - ${VIEWPORT}</title>
- <style>
- body { font-family: Arial, sans-serif; margin: 20px; background: #f5f5f5; }
- h1 { color: #333; }
- .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
- .screenshot { background: white; border-radius: 8px; padding: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
- .screenshot img { width: 100%; height: auto; border-radius: 4px; cursor: pointer; }
- .screenshot h3 { margin: 10px 0 5px 0; color: #555; font-size: 14px; }
- .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); }
- .modal-content { margin: auto; display: block; max-width: 90%; max-height: 90%; margin-top: 50px; }
- .close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; cursor: pointer; }
- .status-failed { border-left: 4px solid #e74c3c; }
- .status-passed { border-left: 4px solid #27ae60; }
- </style>
- </head>
- <body>
- <h1>📸 UI Test Screenshots - ${VIEWPORT}</h1>
- <p>Test run: ${RUN_ID} | Branch: ${BRANCH_NAME}</p>
- <div class="gallery">
- EOF
-
- # Add screenshots to gallery
- for dir in responsive-ui-tests/*/; do
- if [ -d "$dir" ]; then
- for img in "$dir"*.png; do
- if [ -f "$img" ]; then
- filename=$(basename "$img")
- device=$(basename "$dir")
-
- # Create thumbnail
- convert "$img" -resize 400x400 "thumb_$filename" 2>/dev/null || cp "$img" "thumb_$filename"
-
- # Determine status based on test output
- status="status-passed"
- if grep -q "$filename" test-output.log 2>/dev/null; then
- status="status-failed"
- fi
-
- {
- echo "<div class='screenshot $status'>"
- echo " <h3>$device - ${filename%.png}</h3>"
- echo " <img src='$img' onclick='openModal(this)' alt='$filename'>"
- echo "</div>"
- } >> screenshot-gallery.html
- fi
- done
- fi
- done
-
- cat >> screenshot-gallery.html << 'EOF'
- </div>
- <div id="modal" class="modal" onclick="closeModal()">
- <span class="close">&times;</span>
- <img class="modal-content" id="modal-img">
- </div>
- <script>
- function openModal(img) {
- document.getElementById('modal').style.display = 'block';
- document.getElementById('modal-img').src = img.src;
- }
- function closeModal() {
- document.getElementById('modal').style.display = 'none';
- }
- </script>
- </body>
- </html>
- EOF
-
- echo "Screenshot gallery created"
-
- - name: Upload screenshots and gallery
- if: false # Disabled - screenshots not needed in CI
- uses: actions/upload-artifact@v4
- with:
- name: ui-test-results-${{ matrix.viewport }}
- path: |
- tests/ui_tests/responsive/responsive-ui-tests/
- tests/ui_tests/responsive/screenshot-gallery.html
- tests/ui_tests/responsive/test-output.log
- tests/ui_tests/responsive/test-summary.md
- retention-days: 7
+ # Screenshot gallery and upload steps disabled - not needed in CI
+ # If screenshots are needed in the future, re-enable these steps
- name: Upload to GitHub Pages (if available)
if: always() && github.event_name == 'pull_request'
diff --git a/.pre-commit-hooks/file-whitelist-check.sh b/.pre-commit-hooks/file-whitelist-check.sh
index 38db3a1e87..f3caecda1b 100755
--- a/.pre-commit-hooks/file-whitelist-check.sh
+++ b/.pre-commit-hooks/file-whitelist-check.sh
@@ -18,6 +18,7 @@ ALLOWED_PATTERNS=(
"\.ipynb$"
"\.template$"
"\.toml$"
+ "\.jinja2$"
"^\.gitignore$"
"^\.gitkeep$"
".*\.gitkeep$"