From b4e4940fd729b2b119c052cabeaccb0f8f922595 Mon Sep 17 00:00:00 2001 From: Lebaud Antoine Date: Thu, 7 Mar 2024 11:01:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8(backend)=20update=20Ruff=20config?= =?UTF-8?q?=20to=20suppress=20deprecation=20warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When running make ruff-check, a warning informs the user that some config are deprecated, and gives her the step to migrate. This warning appears after Ruff released its v0.2.0. Fix it, by keeping our pyproject.toml up to date. --- src/backend/pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/pyproject.toml b/src/backend/pyproject.toml index d696411..7e94f99 100644 --- a/src/backend/pyproject.toml +++ b/src/backend/pyproject.toml @@ -93,7 +93,6 @@ exclude = [ "__pycache__", "*/migrations/*", ] -ignore= ["DJ001", "PLR2004"] line-length = 88 @@ -114,12 +113,13 @@ select = [ "SLF", # flake8-self "T20", # flake8-print ] +ignore= ["DJ001", "PLR2004"] [tool.ruff.lint.isort] section-order = ["future","standard-library","django","third-party","people","first-party","local-folder"] sections = { people=["core"], django=["django"] } -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "**/tests/*" = ["S", "SLF"] [tool.pytest.ini_options]