From fd3ac00ea7c3099fe40182cec8821fb9796a6365 Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Fri, 25 Oct 2024 13:21:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8(linter)=20add=20D1=20pydocstyle=20?= =?UTF-8?q?rule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See PR for rationale. --- src/backend/core/resource_server/clients.py | 2 +- src/backend/pyproject.toml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/backend/core/resource_server/clients.py b/src/backend/core/resource_server/clients.py index 046cf97..baa6c78 100644 --- a/src/backend/core/resource_server/clients.py +++ b/src/backend/core/resource_server/clients.py @@ -19,7 +19,7 @@ class AuthorizationServerClient: - Setting appropriate headers for secure communication as recommended by RFC drafts. """ - # ruff: noqa: PLR0913 PLR017 + # ruff: noqa: PLR0913 PLR0917 # pylint: disable=too-many-positional-arguments # pylint: disable=too-many-arguments def __init__( diff --git a/src/backend/pyproject.toml b/src/backend/pyproject.toml index d38305c..4a4f529 100644 --- a/src/backend/pyproject.toml +++ b/src/backend/pyproject.toml @@ -116,9 +116,13 @@ select = [ "S", # flake8-bandit "SLF", # flake8-self "T20", # flake8-print + "D1", # pydocstyle ] ignore= ["DJ001", "PLR2004"] +[tool.ruff.lint.pydocstyle] +convention = "google" + [tool.ruff.lint.isort] section-order = ["future","standard-library","django","third-party","people","first-party","local-folder"] sections = { people=["core"], django=["django"] }