fix: lint errors and ignore tutorial python files when linting

This commit is contained in:
Boris Arzentar 2025-12-18 17:33:21 +01:00
parent d127381262
commit edb541505c
No known key found for this signature in database
GPG key ID: D5CC274C784807B7
2 changed files with 5 additions and 3 deletions

View file

@ -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()

View file

@ -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]