From edb541505cb1514bd90c9b39756fd99fbc8a9501 Mon Sep 17 00:00:00 2001 From: Boris Arzentar Date: Thu, 18 Dec 2025 17:33:21 +0100 Subject: [PATCH] fix: lint errors and ignore tutorial python files when linting --- .../unit/modules/users/test_tutorial_notebook_creation.py | 5 +++-- pyproject.toml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cognee/tests/unit/modules/users/test_tutorial_notebook_creation.py b/cognee/tests/unit/modules/users/test_tutorial_notebook_creation.py index 105304372..e6fb2ce7f 100644 --- a/cognee/tests/unit/modules/users/test_tutorial_notebook_creation.py +++ b/cognee/tests/unit/modules/users/test_tutorial_notebook_creation.py @@ -17,11 +17,12 @@ from cognee.modules.notebooks.methods.create_tutorial_notebooks import ( _load_tutorial_cells, ) +from cognee.modules.notebooks.models.Notebook import Notebook, NotebookCell +from cognee.shared.logging_utils import get_logger + create_tutorial_notebooks_module = importlib.import_module( "cognee.modules.notebooks.methods.create_tutorial_notebooks" ) -from cognee.modules.notebooks.models.Notebook import Notebook, NotebookCell -from cognee.shared.logging_utils import get_logger logger = get_logger() diff --git a/pyproject.toml b/pyproject.toml index 24ea6ca9b..c458e57f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -200,7 +200,8 @@ exclude = [ "cognee/modules/users/models/Group.py", "cognee/modules/users/models/ACL.py", "cognee/modules/pipelines/models/Task.py", - "cognee/modules/data/models/Dataset.py" + "cognee/modules/data/models/Dataset.py", + "cognee/modules/notebooks/tutorials/" # Ignore tutorial Python files ] [tool.ruff.lint]