chore: fix indention violations by applying E111 to E117 ruff rules (#4925)

This commit is contained in:
Bowen Liang
2024-06-05 14:05:15 +08:00
committed by GitHub
parent 6b6afb7708
commit f32b440c4a
14 changed files with 73 additions and 61 deletions

View File

@@ -54,7 +54,7 @@ class PGVectoRS(BaseVector):
class _Table(CollectionORM):
__tablename__ = collection_name
__table_args__ = {"extend_existing": True} # noqa: RUF012
__table_args__ = {"extend_existing": True}
id: Mapped[UUID] = mapped_column(
postgresql.UUID(as_uuid=True),
primary_key=True,

View File

@@ -190,7 +190,7 @@ class RelytVector(BaseVector):
conn.execute(chunks_table.delete().where(delete_condition))
return True
except Exception as e:
print("Delete operation failed:", str(e)) # noqa: T201
print("Delete operation failed:", str(e))
return False
def delete_by_metadata_field(self, key: str, value: str):

View File

@@ -50,7 +50,7 @@ class BaseDocumentTransformer(ABC):
) -> Sequence[Document]:
raise NotImplementedError
""" # noqa: E501
"""
@abstractmethod
def transform_documents(