From 62b928117c51347221def5e3a74bfeefc9f953ed Mon Sep 17 00:00:00 2001 From: kiblik <5609770+kiblik@users.noreply.github.com> Date: Thu, 16 Oct 2025 14:14:59 +0200 Subject: [PATCH] ruff: PT - simplify rules --- ruff.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ruff.toml b/ruff.toml index 092bd58fee0..62564ae4813 100644 --- a/ruff.toml +++ b/ruff.toml @@ -58,7 +58,7 @@ select = [ "PIE", "T20", "PYI", - "PT001", "PT002", "PT003", "PT006", "PT007", "PT008", "PT01", "PT020", "PT021", "PT022", "PT023", "PT024", "PT025", "PT026", "PT028", "PT029", "PT03", + "PT", "Q", "RSE", "RET", @@ -101,6 +101,8 @@ ignore = [ "FIX002", # TODOs need some love but we will probably not get of them "D211", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible. "D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible. + "PT009", # We are using a different style of tests (official Django tests), so it does not make sense to try to fix it + "PT027", # Same ^ ] # Allow autofix for all enabled rules (when `--fix`) is provided.