Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
29 changes: 15 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
minimum_pre_commit_version: "3.2.0"

default_language_version:
python: python3

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v6.0.0
hooks:
- id: no-commit-to-branch
args: [--branch, main]
- id: check-ast
description: Simply check whether files parse as valid python.
- id: check-yaml
- id: check-toml
- id: check-json
- id: check-merge-conflict
- id: debug-statements
- id: trailing-whitespace
description: Trims trailing whitespace
- id: end-of-file-fixer
description: Makes sure files end in a newline and only a newline.
- id: check-added-large-files
args: ["--maxkb=5000"]
description: Prevent giant files from being committed.
- id: check-case-conflict
description: Check for files with names that would conflict on case-insensitive filesystems like MacOS/Windows.
- repo: https://github.com/jsh9/pydoclint
rev: 0.5.3
rev: 0.8.3
hooks:
- id: pydoclint
- repo: https://github.com/astral-sh/ruff-pre-commit
Expand All @@ -27,10 +30,8 @@ repos:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: local
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
hooks:
- id: mypy
name: mypy
entry: mypy
language: python
types: [python]
additional_dependencies: []
4 changes: 2 additions & 2 deletions src/semble/types.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from collections.abc import Sequence
from dataclasses import dataclass, field
from enum import Enum
from typing import Protocol
from typing import Protocol, TypeAlias

import numpy as np
import numpy.typing as npt

EmbeddingMatrix = npt.NDArray[np.float32]
EmbeddingMatrix: TypeAlias = npt.NDArray[np.float32]


class SearchMode(str, Enum):
Expand Down
Loading