From 844cf78c89701455199c0097e56a00dc4462632d Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Sat, 21 Mar 2026 16:42:34 +0100 Subject: [PATCH] fix: migrate ruff.toml to lint section and add pytest to dev dependencies --- pyproject.toml | 1 + ruff.toml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 234ab18..240725d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,5 +24,6 @@ cuda = [ [dependency-groups] dev = [ "pre-commit>=4.0.0", + "pytest>=8.0.0", "ruff>=0.15.2", ] diff --git a/ruff.toml b/ruff.toml index d3c196a..8215e49 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,3 +1,4 @@ +[lint] extend-select = [ # "PLC0103", # invalid-name # "PLC0104", # disallowed-name @@ -43,7 +44,7 @@ extend-select = [ "PLC2801", # unnecessary-dunder-call # "PLC3001", # unnecessary-lambda-assignment "PLC3002", # unnecessary-direct-lambda-call - "E999", # syntax-error + # "E999", # syntax-error (removed from ruff) # "PLE0011", # unrecognized-inline-option # "PLE0013", # bad-plugin-value # "PLE0014", # bad-configuration-section @@ -298,7 +299,7 @@ extend-select = [ # "PLW4906", # deprecated-attribute ] -ignore = [ +extend-ignore = [ # "PLC0116", # missing-function-docstring # "PLC0200", # consider-using-enumerate # "PLC0305", # trailing-newlines