From 53419128f00f13e2b12ab1f45afa29059212842a Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Mon, 4 Nov 2024 09:38:36 +0100 Subject: [PATCH] project: Extend ruff with pyupgrade checks Check for deprecated usages in the project when running ruff check. Signed-off-by: Pieter De Gendt --- pyproject.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index f405e1f..a25338d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,3 +44,11 @@ include-package-data = true [tool.setuptools.packages.find] where = ["src"] namespaces = false + +[tool.ruff.lint] +extend-select = [ + "UP", # pyupgrade +] +ignore = [ + "UP027", # deprecated pyupgrade rule +]