Skip to content

Commit

Permalink
Merge pull request #50 from supabase/or/blackify
Browse files Browse the repository at this point in the history
Run precommit in CI on PR
  • Loading branch information
olirice authored Oct 2, 2023
2 parents b68baf6 + ddfb819 commit 7045627
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pre-commit

on: [push]
on: [push, pull_request]

jobs:
build:
Expand Down
8 changes: 7 additions & 1 deletion src/vecs/adapter/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ class TextEmbedding(AdapterStep):
embeddings using a specified sentence transformers model.
"""

def __init__(self, *, model: TextEmbeddingModel, batch_size: int = 8, use_auth_token: str = None):
def __init__(
self,
*,
model: TextEmbeddingModel,
batch_size: int = 8,
use_auth_token: str = None,
):
"""
Initializes the TextEmbedding adapter with a sentence transformers model.
Expand Down

0 comments on commit 7045627

Please sign in to comment.