From ee0467e638f0e5d6f08c9543f2452db5ab603bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Colomb?= Date: Thu, 7 May 2026 09:47:42 +0200 Subject: [PATCH 1/2] Add some basic rules for ruff linter and black formatting. Line-length 96 is a compomise because 80 is problematic with existing code, but we want a bit of headroom for the next common limit of 100. String "normalization" is complete noise in most cases, that could be enabled again after some general cleanup. --- pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index e24f6132..3766a1fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,3 +56,10 @@ exclude = [ "^test*", "^setup.py*", ] + +[tool.ruff] +line-length = 96 + +[tool.black] +line-length = 96 +skip-string-normalization = true From 4eaf9af3ea5f11ea6f1aadb3064f17f0d941099e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Colomb?= Date: Tue, 5 May 2026 09:36:32 +0200 Subject: [PATCH 2/2] Ruff config to fix import ordering discrepancy. Make sure that ruff agrees with the previously used import ordering style from isort. --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 3766a1fe..986f0fdf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,6 +59,10 @@ exclude = [ [tool.ruff] line-length = 96 +[tool.ruff.lint.isort] +case-sensitive = true +order-by-type = false +lines-after-imports = 2 [tool.black] line-length = 96