DeepCritical / .pre-commit-config.yaml
Joseph Pollack
fix interface
cb48bd4 unverified
raw
history blame
1.51 kB
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.7 # Compatible with ruff>=0.14.6 (matches CI)
hooks:
- id: ruff
args: [--fix, --exclude, tests, --exclude, reference_repos]
exclude: ^reference_repos/
- id: ruff-format
args: [--exclude, tests, --exclude, reference_repos]
exclude: ^reference_repos/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.18.2 # Matches CI version mypy>=1.18.2
hooks:
- id: mypy
files: ^src/
exclude: ^folder
additional_dependencies:
- pydantic>=2.7
- pydantic-settings>=2.2
- tenacity>=8.2
- pydantic-ai>=0.0.16
args: [--ignore-missing-imports]
- repo: local
hooks:
- id: pytest-unit
name: pytest unit tests (no OpenAI)
entry: uv
language: system
types: [python]
args: [
"run",
"python",
".pre-commit-hooks/run_pytest_with_sync.py",
"unit",
]
pass_filenames: false
always_run: true
require_serial: false
- id: pytest-local-embeddings
name: pytest local embeddings tests
entry: uv
language: system
types: [python]
args: [
"run",
"python",
".pre-commit-hooks/run_pytest_with_sync.py",
"embeddings",
]
pass_filenames: false
always_run: true
require_serial: false