From 4a011024dd5f18fa55ca87ce1dc2715ea8b1cf1d Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Wed, 31 Jul 2024 00:26:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8(backend)=20fix=20Ruff=20warnings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ruff is configured in the pyproject.toml file. Its configuration was deprecated. It triggered warning in the console. Updated the pyproject.toml file. --- 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 22c2e39b..44377022 100644 --- a/src/backend/pyproject.toml +++ b/src/backend/pyproject.toml @@ -100,7 +100,6 @@ exclude = [ "__pycache__", "*/migrations/*", ] -ignore= ["DJ001", "PLR2004"] line-length = 88 @@ -121,12 +120,13 @@ select = [ "SLF", # flake8-self "T20", # flake8-print ] +ignore= ["DJ001", "PLR2004"] [tool.ruff.lint.isort] section-order = ["future","standard-library","django","third-party","meet","first-party","local-folder"] sections = { meet=["core"], django=["django"] } -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "**/tests/*" = ["S", "SLF"] [tool.pytest.ini_options]