From a9781c8caf8d3ea83add55afe4ea66fcf0f86a01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Signe=20Kirk=20Br=C3=B8db=C3=A6k?= Date: Tue, 11 Aug 2026 09:45:32 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20allow=20`Optional[]`=20and?= =?UTF-8?q?=20`Union[]`=20typing=20in=20Ruff?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/.config/ruff.toml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/template/.config/ruff.toml b/template/.config/ruff.toml index 7c08aab..28c1416 100644 --- a/template/.config/ruff.toml +++ b/template/.config/ruff.toml @@ -13,8 +13,14 @@ extend-select = [ # Check for unused arguments "ARG", ] -# Ignore missing docstring at the top of files -ignore = ["D100"] +ignore = [ + # Ignore missing docstring at the top of files. + "D100", + # Use `Optional[]` typing. + "UP045", + # Use `Union[]` typing (not `|`) to be aligned with `Optional[]`. + "UP007", +] [lint.pydocstyle] convention = "google"