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.

🤖 Update pre-commit hooks

github-actions[bot]c0f31699b4b5
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 5d281ecdf7..edb21bc1f6 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,123 +1,131 @@
repos:
- - repo: https://github.com/pre-commit/pre-commit-hooks
+- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- - id: check-yaml
+ - id: check-yaml
exclude: cookiecutter-docker/.*
- - id: end-of-file-fixer
- - id: trailing-whitespace
- - id: check-added-large-files
+ - id: end-of-file-fixer
+ - id: trailing-whitespace
+ - id: check-added-large-files
args: ['--maxkb=1000']
- - id: check-case-conflict
- - id: forbid-new-submodules
- - repo: https://github.com/gitleaks/gitleaks
- rev: v8.24.3
+ - id: check-case-conflict
+ - id: forbid-new-submodules
+- repo: https://github.com/gitleaks/gitleaks
+ rev: v8.30.0
hooks:
- - id: gitleaks
+ - id: gitleaks
name: Detect secrets with gitleaks
description: "Detect hardcoded secrets like passwords, API keys, and tokens"
args: ["--config", ".gitleaks.toml"]
- - repo: https://github.com/shellcheck-py/shellcheck-py
- rev: v0.10.0.1
+- repo: https://github.com/shellcheck-py/shellcheck-py
+ rev: v0.11.0.1
hooks:
- - id: shellcheck
+ - id: shellcheck
name: Shellcheck - lint shell scripts
description: "Shell script static analysis tool"
- - repo: https://github.com/pre-commit/mirrors-eslint
- rev: v9.27.0
+- repo: https://github.com/pre-commit/mirrors-eslint
+ rev: v9.39.1
hooks:
- - id: eslint
+ - id: eslint
name: ESLint - lint JavaScript
files: \.(js|mjs)$
exclude: (node_modules|dist|build|\.min\.js|static/dist)
args: ['--config', 'eslint.config.js']
additional_dependencies:
- - repo: https://github.com/astral-sh/ruff-pre-commit
+- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
- rev: v0.14.5
+ rev: v0.14.8
hooks:
# Run the linter.
- - id: ruff
- args: [ --fix ]
+ - id: ruff
+ args: [--fix]
# Run the formatter.
- - id: ruff-format
- - repo: https://github.com/rhysd/actionlint
+ - id: ruff-format
+- repo: https://github.com/rhysd/actionlint
rev: v1.7.9
hooks:
- - id: actionlint
+ - id: actionlint
name: Lint GitHub Actions workflows
description: "Static checker for GitHub Actions workflow files"
files: ^\.github/workflows/.*\.ya?ml$
- - repo: local
+- repo: local
hooks:
- - id: custom-code-checks
+ - id: custom-code-checks
name: Custom Code Quality Checks
entry: .pre-commit-hooks/custom-checks.py
language: script
files: \.py$
- description: "Check for loguru usage, logger.exception vs logger.error, raw SQL, redundant {e} in logger.exception, and non-UTC datetime usage"
- - id: check-env-vars
+ description: "Check for loguru usage, logger.exception vs logger.error, raw
+ SQL, redundant {e} in logger.exception, and non-UTC datetime usage"
+ - id: check-env-vars
name: Environment Variable Access Check
entry: .pre-commit-hooks/check-env-vars.py
language: script
files: \.py$
description: "Ensure environment variables are accessed through SettingsManager"
- - id: file-whitelist-check
+ - id: file-whitelist-check
name: File Whitelist Security Check
entry: .pre-commit-hooks/file-whitelist-check.sh
language: script
types: [file]
description: "Check for allowed file types and file sizes"
- - id: check-deprecated-db-connection
+ - id: check-deprecated-db-connection
name: Check for deprecated get_db_connection usage
entry: .pre-commit-hooks/check-deprecated-db.py
language: script
files: \.py$
- description: "Ensure code uses per-user database connections instead of deprecated shared database"
- - id: check-ldr-db-usage
+ description: "Ensure code uses per-user database connections instead of deprecated
+ shared database"
+ - id: check-ldr-db-usage
name: Check for ldr.db usage
entry: .pre-commit-hooks/check-ldr-db.py
language: script
files: \.py$
- description: "Prevent usage of shared ldr.db database - all data must use per-user encrypted databases"
- - id: check-research-id-type
+ description: "Prevent usage of shared ldr.db database - all data must use
+ per-user encrypted databases"
+ - id: check-research-id-type
name: Check for incorrect research_id type hints
entry: .pre-commit-hooks/check-research-id-type.py
language: script
files: \.py$
- description: "Ensure research_id is always treated as string/UUID, never as int"
- - id: check-deprecated-settings-wrapper
+ description: "Ensure research_id is always treated as string/UUID, never as
+ int"
+ - id: check-deprecated-settings-wrapper
name: Check for deprecated get_setting_from_db_main_thread usage
entry: .pre-commit-hooks/check-deprecated-settings-wrapper.py
language: script
files: \.py$
- description: "Prevent usage of redundant get_setting_from_db_main_thread wrapper - use SettingsManager directly"
- - id: check-datetime-timezone
+ description: "Prevent usage of redundant get_setting_from_db_main_thread wrapper
+ - use SettingsManager directly"
+ - id: check-datetime-timezone
name: Check DateTime columns have timezone
entry: scripts/pre_commit/check_datetime_timezone.py
language: script
files: \.py$
description: "Ensure all SQLAlchemy DateTime columns have timezone=True"
- - id: check-session-context-manager
+ - id: check-session-context-manager
name: Check for try/finally session patterns
entry: .pre-commit-hooks/check-session-context-manager.py
language: script
files: \.py$
- description: "Ensure SQLAlchemy sessions use context managers instead of try/finally blocks"
- - id: check-pathlib-usage
+ description: "Ensure SQLAlchemy sessions use context managers instead of try/finally
+ blocks"
+ - id: check-pathlib-usage
name: Check for os.path usage
entry: .pre-commit-hooks/check-pathlib-usage.py
language: script
files: \.py$
- description: "Enforce using pathlib.Path instead of os.path for better cross-platform compatibility"
- - id: check-no-external-resources
+ description: "Enforce using pathlib.Path instead of os.path for better cross-platform
+ compatibility"
+ - id: check-no-external-resources
name: Check for external CDN/resource references
entry: .pre-commit-hooks/check-external-resources.py
language: script
files: \.(html|js|css|py)$
- description: "Ensure no external CDN URLs or external resources are referenced in the codebase"
- - id: check-sensitive-logging
+ description: "Ensure no external CDN URLs or external resources are referenced
+ in the codebase"
+ - id: check-sensitive-logging
name: Check for sensitive data in logging
entry: .pre-commit-hooks/check-sensitive-logging.py
language: script