File size: 1,369 Bytes
069f0a0
 
 
 
 
3ab54ea
7057335
069f0a0
3ab54ea
7057335
069f0a0
 
 
 
 
 
731a241
069f0a0
 
 
cace02f
95d2e29
069f0a0
cd46aca
 
 
 
 
 
 
 
 
 
53c4c46
 
 
cd46aca
 
 
 
 
 
 
 
 
 
 
53c4c46
 
 
cd46aca
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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",
          "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