multiple: Remove unnecessary Ruff suppression comments (#21050)

## Summary

I ran `ruff check --extend-select RUF100 -n` to identify `# noqa`
comments that weren't having any effect in Ruff, and then `ruff check
--extend-select RUF100 -n --fix` on select files to remove all of the
unnecessary `# noqa: F401` violations. It's possible that these were
needed at some point in the past, but they're not necessary in Ruff
v0.1.15 (used by LangChain) or in the latest release.

Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
Charlie Marsh
2024-04-30 10:13:48 -07:00
committed by GitHub
parent 748f2ba9ea
commit 8f38b7a725
45 changed files with 808 additions and 808 deletions

View File

@@ -20,36 +20,36 @@ from typing import TYPE_CHECKING, Any
if TYPE_CHECKING:
from langchain_community.document_transformers.beautiful_soup_transformer import (
BeautifulSoupTransformer, # noqa: F401
BeautifulSoupTransformer,
)
from langchain_community.document_transformers.doctran_text_extract import (
DoctranPropertyExtractor, # noqa: F401
DoctranPropertyExtractor,
)
from langchain_community.document_transformers.doctran_text_qa import (
DoctranQATransformer, # noqa: F401
DoctranQATransformer,
)
from langchain_community.document_transformers.doctran_text_translate import (
DoctranTextTranslator, # noqa: F401
DoctranTextTranslator,
)
from langchain_community.document_transformers.embeddings_redundant_filter import (
EmbeddingsClusteringFilter, # noqa: F401
EmbeddingsRedundantFilter, # noqa: F401
get_stateful_documents, # noqa: F401
EmbeddingsClusteringFilter,
EmbeddingsRedundantFilter,
get_stateful_documents,
)
from langchain_community.document_transformers.google_translate import (
GoogleTranslateTransformer, # noqa: F401
GoogleTranslateTransformer,
)
from langchain_community.document_transformers.html2text import (
Html2TextTransformer, # noqa: F401
Html2TextTransformer,
)
from langchain_community.document_transformers.long_context_reorder import (
LongContextReorder, # noqa: F401
LongContextReorder,
)
from langchain_community.document_transformers.nuclia_text_transform import (
NucliaTextTransformer, # noqa: F401
NucliaTextTransformer,
)
from langchain_community.document_transformers.openai_functions import (
OpenAIMetadataTagger, # noqa: F401
OpenAIMetadataTagger,
)
__all__ = [