diff --git a/ols/src/rag_index/index_loader.py b/ols/src/rag_index/index_loader.py index 7f86ed36..3912e860 100644 --- a/ols/src/rag_index/index_loader.py +++ b/ols/src/rag_index/index_loader.py @@ -16,7 +16,7 @@ # So this module is excluded from mypy checks as a whole. def load_llama_index_deps() -> None: """Load llama_index dependencies.""" - # pylint: disable=global-statement + # pylint: disable=global-statement disable=C0415 global Settings global StorageContext global load_index_from_storage @@ -55,6 +55,7 @@ def __init__(self, index_config: Optional[ReferenceContent]) -> None: def _get_embed_model(self) -> Any: """Get embed model according to configuration.""" if self._embed_model_path is not None: + # pylint: disable=C0415 from llama_index.embeddings.huggingface import HuggingFaceEmbedding logger.debug( diff --git a/ols/utils/pyroscope.py b/ols/utils/pyroscope.py index 54a25742..5db3f373 100644 --- a/ols/utils/pyroscope.py +++ b/ols/utils/pyroscope.py @@ -21,6 +21,7 @@ def start_with_pyroscope_enabled( logger.info( "Pyroscope server is reachable at %s", config.dev_config.pyroscope_url ) + # pylint: disable=C0415 import pyroscope pyroscope.configure( diff --git a/pyproject.toml b/pyproject.toml index 55915e37..a3f1b511 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -163,4 +163,4 @@ packages = ["ols"] [tool.pylint."MESSAGES CONTROL"] good-names = ["e"] -disable = ["W1203", "C0103", "C0301", "C0302", "C0415", "E0602", "E0611", "E1101", "R0902", "R0903", "R0913", "R0914", "W0102", "W0212", "W0511", "W0613", "W0621", "W0622", "W0707", "W0718", "W0719", "E0401", "R0801", "R0917"] +disable = ["W1203", "C0103", "C0301", "C0302", "E0602", "E0611", "E1101", "R0902", "R0903", "R0913", "R0914", "W0102", "W0212", "W0511", "W0613", "W0621", "W0622", "W0707", "W0718", "W0719", "E0401", "R0801", "R0917"]