From d0689b94aa74588ddba526ef240a2f547518ce2e Mon Sep 17 00:00:00 2001 From: Bagatur Date: Mon, 2 Sep 2024 14:24:44 -0700 Subject: [PATCH] core[patch]: add pydocstyle linting --- libs/core/pyproject.toml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/libs/core/pyproject.toml b/libs/core/pyproject.toml index 8adbaa71b1b..499670c5392 100644 --- a/libs/core/pyproject.toml +++ b/libs/core/pyproject.toml @@ -41,9 +41,20 @@ python = ">=3.12.4" [tool.poetry.extras] [tool.ruff.lint] -select = [ "B", "E", "F", "I", "T201", "UP",] +select = [ + "B", + "E", + "F", + "I", + "T201", + "UP", + "D", # pydocstyle +] ignore = [ "UP006", "UP007",] +[tool.ruff.lint.pydocstyle] +convention = "google" + [tool.coverage.run] omit = [ "tests/*",] @@ -71,6 +82,7 @@ optional = true "tests/unit_tests/prompts/test_chat.py" = [ "E501",] "tests/unit_tests/runnables/test_runnable.py" = [ "E501",] "tests/unit_tests/runnables/test_graph.py" = [ "E501",] +"tests/**" = ["D"] # ignore docstring checks for tests [tool.poetry.group.lint.dependencies] ruff = "^0.5"