DeepCritical / .pre-commit-config.yaml
Joseph Pollack
ruff format check solution
3ab54ea unverified
raw
history blame
1.54 kB
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
hooks:
- id: ruff
args: [--fix, --exclude, tests]
exclude: ^reference_repos/
- id: ruff-format
args: [--exclude, tests]
exclude: ^reference_repos/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
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",
"pytest",
"tests/unit/",
"-v",
"-m",
"not openai and not embedding_provider",
"--tb=short",
"-p",
"no:logfire",
]
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",
"pytest",
"tests/",
"-v",
"-m",
"local_embeddings",
"--tb=short",
"-p",
"no:logfire",
]
pass_filenames: false
always_run: true
require_serial: false