From bf65bbef07438bf10771d57870b55a4d39648393 Mon Sep 17 00:00:00 2001 From: "Curt J. Sampson" Date: Wed, 7 Feb 2024 07:07:01 +0900 Subject: [PATCH] pyproject.toml: Move certain tool.ruff settings to tool.ruff.lint tool.ruff.{select,isort,ignore,per-file-ignores} will soon be deprecated in favour of putting these under tool.ruff.lint. (See reverted PR #3214 for the complaint that appears in a more recent version of ruff.) Change these now to avoid complaints later. --- pyproject.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7cb8de3ca..608554b19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,11 +103,11 @@ build.targets.sdist.include = ["/src", "/tests", "/tox.ini"] version.source = "vcs" [tool.ruff] -select = ["ALL"] +lint.select = ["ALL"] line-length = 120 target-version = "py38" -isort = { known-first-party = ["tox", "tests"], required-imports = ["from __future__ import annotations"] } -ignore = [ +lint.isort = { known-first-party = ["tox", "tests"], required-imports = ["from __future__ import annotations"] } +lint.ignore = [ "CPY", # No copyright header "INP001", # no implicit namespaces here "D", # ignore documentation for now @@ -132,7 +132,7 @@ ignore = [ ] format.preview = true lint.preview = true -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "tests/**/*.py" = [ "S101", # asserts allowed in tests... "FBT", # don"t care about booleans as positional arguments in tests