Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: astral-sh/setup-uv@v7.6.0
with:
# Install a specific version of uv.
version: "0.9.11"
version: "0.11.15"
enable-cache: true

- name: "Set up Python"
Expand All @@ -58,3 +58,11 @@ jobs:
ignore-vulns: |
GHSA-4xh5-x5gv-qwph
CVE-2026-4539
CVE-2026-45829
CVE-2025-69872
PYSEC-2026-139
CVE-2025-3000
CVE-2025-3001
PYSEC-2025-217
CVE-2026-1839
PYSEC-2026-161
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
uses: astral-sh/setup-uv@v7.6.0
with:
# Install a specific version of uv.
version: "0.9.11"
version: "0.11.15"
enable-cache: true

- name: "Set up Python"
Expand Down
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,32 @@ wheels/
# macos
*.DS_Store
site/

# Media files
*.jpg
*.jpeg
*.png
*.gif

# CSV and JSON files
*.csv
*.json
*.jsonl

# Log files
*.log
logs/
**/logs/

# Bash and SLURM scripts
*.slrm
*.backup

# Run artifacts
output/
meps/
logs/

# Editor copies
*copy*.ipynb
vllm_endpoint.txt
105 changes: 57 additions & 48 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,76 +1,85 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0 # Use the ref you want to point at
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: fix-byte-order-marker
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
- id: check-yaml
args: [--unsafe]
- id: check-toml
- id: trailing-whitespace
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: fix-byte-order-marker
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
- id: check-yaml
args: [--unsafe]
- id: check-toml

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.10.12
hooks:
- id: uv-lock

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.15.7'
rev: v0.15.7
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
types_or: [python, jupyter]
- id: ruff-format
types_or: [python, jupyter]
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
types_or: [python, jupyter]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.1
- repo: local
hooks:
- id: mypy
entry: python3 -m mypy --config-file pyproject.toml
language: system
types: [python]
exclude: "tests"
- id: mypy
name: mypy
entry: .venv/bin/mypy
language: system
types: [python]
exclude: "tests"
args: [--config-file, pyproject.toml]
pass_filenames: false
always_run: true

- repo: https://github.com/crate-ci/typos
rev: v1.44.0
hooks:
- id: typos
args: []

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.9.1
hooks:
- id: nbqa-ruff
args: [--fix, --exit-non-zero-on-fix]
- id: nbqa-ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: local
hooks:
- id: pytest
name: pytest
entry: python3 -m pytest -m "not integration_test"
language: system
pass_filenames: false
always_run: true
- id: pytest
name: pytest
# Bare `python` often hits conda/site-packages without project deps (e.g. langfuse, httpx).
# `uv run` uses the repo's Python and lockfile; agentic-xai-eval pulls crewai for vision tests.
entry: uv run --group agentic-xai-eval python -m pytest -m "not integration_test"
language: system
pass_filenames: false
always_run: true

# Run after pytest so formatter edits do not confuse later hooks in the same run.
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.7
hooks:
- id: ruff-format
types_or: [python, jupyter]

ci:
autofix_commit_msg: |
[pre-commit.ci] Add auto fixes from pre-commit.com hooks
autofix_commit_msg: |
[pre-commit.ci] Add auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: [pytest,doctest,mypy]
submodules: false
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: [pytest, doctest, mypy]
submodules: false
Loading