diff --git a/libs/knowledge-graph/ragstack_knowledge_graph/render.py b/libs/knowledge-graph/ragstack_knowledge_graph/render.py index 32532079d..c0d790fae 100644 --- a/libs/knowledge-graph/ragstack_knowledge_graph/render.py +++ b/libs/knowledge-graph/ragstack_knowledge_graph/render.py @@ -20,7 +20,7 @@ def print_graph_documents( for relation in doc.relationships: source = relation.source target = relation.target - print(f"{_node_label(source)} -> {_node_label(target)}: {relation.type}") + print(f"{_node_label(source)} -> {_node_label(target)}: {relation.type}") # noqa: T201 def render_graph_documents( diff --git a/libs/ragulate/colbert_chunk_size_and_k.py b/libs/ragulate/colbert_chunk_size_and_k.py index efbb6722e..46dc7ead0 100644 --- a/libs/ragulate/colbert_chunk_size_and_k.py +++ b/libs/ragulate/colbert_chunk_size_and_k.py @@ -1,3 +1,4 @@ +# ruff: noqa: T201 import logging import os import time diff --git a/libs/ragulate/open_ai_chunk_size_and_k.py b/libs/ragulate/open_ai_chunk_size_and_k.py index fda6f8acf..8650f20a5 100644 --- a/libs/ragulate/open_ai_chunk_size_and_k.py +++ b/libs/ragulate/open_ai_chunk_size_and_k.py @@ -1,3 +1,4 @@ +# ruff: noqa: T201 import os from langchain_astradb import AstraDBVectorStore diff --git a/libs/ragulate/ragstack_ragulate/pipelines/query_pipeline.py b/libs/ragulate/ragstack_ragulate/pipelines/query_pipeline.py index a35e7ff49..dcb0a0aa7 100644 --- a/libs/ragulate/ragstack_ragulate/pipelines/query_pipeline.py +++ b/libs/ragulate/ragstack_ragulate/pipelines/query_pipeline.py @@ -222,7 +222,7 @@ def query(self): err = f"Query: '{query}' caused exception, skipping." logger.exception(err) # TODO: figure out why the logger isn't working after tru-lens starts. For now use print(). # noqa: E501 - print(f"{err} Exception {e}") + print(f"{err} Exception {e}") # noqa: T201 finally: self.update_progress(query_change=1) diff --git a/pyproject.toml b/pyproject.toml index 9f20b4872..dfa932c07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -97,6 +97,7 @@ select = [ "SIM", "SLOT", "T10", + "T20", "TCH", "TRY", "UP", @@ -105,10 +106,16 @@ select = [ ] [tool.ruff.lint.per-file-ignores] -"**/libs/langchain/*" = [ +"libs/langchain/*" = [ "UP006", # Incompatible with Pydantic v1 "UP007", # Incompatible with Pydantic v1 ] +"**/{examples,notebooks,tests,e2e-tests}/*" = [ + "T20", +] +"scripts/*" = [ + "T20", +] [build-system] requires = ["poetry-core"]