From 10856906d2576f5e17d3320db3a7fdb6b9d11734 Mon Sep 17 00:00:00 2001 From: Joey Vagedes Date: Tue, 1 Oct 2024 08:38:08 -0700 Subject: [PATCH] pyproject.toml: Updated ruff deprecated settings Addresses these deprecated messages from ruff: ``` warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`: - 'ignore' -> 'lint.ignore' - 'select' -> 'lint.select' - 'flake8-annotations' -> 'lint.flake8-annotations' - 'pydocstyle' -> 'lint.pydocstyle' ``` --- pyproject.toml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fea22960..0802f692 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -94,6 +94,10 @@ include = ["edk2toolext/*"] [tool.ruff] src = ["edk2toolext"] +line-length = 120 + +[lint] +ignore = ["ANN101"] select = [ "E", # Pycodestyle errors "W", # Pycodestyle warnings @@ -103,13 +107,11 @@ select = [ "PIE", # flake8 - PIE "ANN", # function annotations ] -line-length = 120 -ignore = ["ANN101"] -[tool.ruff.pydocstyle] +[lint.pydocstyle] convention = "google" -[tool.ruff.flake8-annotations] +[lint.flake8-annotations] allow-star-arg-any = true [tool.pytest.ini_options]