From 25c9f5705db7b160dbcd549ee510f08d21fdad81 Mon Sep 17 00:00:00 2001 From: Gary Yendell Date: Wed, 7 Feb 2024 10:21:51 +0000 Subject: [PATCH] Fix ruff config deprecation warning The warning was 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`: - 'select' -> 'lint.select' Remove extra newline --- pyproject.toml | 2 +- template/pyproject.toml.jinja | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2a61cdaf..01aa1a3e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ commands = [tool.ruff] src = ["src", "tests"] line-length = 88 -select = [ +lint.select = [ "E", # pycodestyle errors - https://beta.ruff.rs/docs/rules/#error-e "F", # pyflakes rules - https://beta.ruff.rs/docs/rules/#pyflakes-f "W", # pycodestyle warnings - https://beta.ruff.rs/docs/rules/#warning-w diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index b9303e18..57812c98 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -98,11 +98,10 @@ commands = docs: sphinx-{posargs:build -EW --keep-going} -T docs build/html """ - [tool.ruff] src = ["src", "tests"] line-length = 88 -select = [ +lint.select = [ "C4", # flake8-comprehensions - https://beta.ruff.rs/docs/rules/#flake8-comprehensions-c4 "E", # pycodestyle errors - https://beta.ruff.rs/docs/rules/#error-e "F", # pyflakes rules - https://beta.ruff.rs/docs/rules/#pyflakes-f