Skip to content

Commit 0dda8ab

Browse files
authored
ruff: PT - simplify rules (#13435)
1 parent b2eda48 commit 0dda8ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ruff.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ select = [
5858
"PIE",
5959
"T20",
6060
"PYI",
61-
"PT001", "PT002", "PT003", "PT006", "PT007", "PT008", "PT01", "PT020", "PT021", "PT022", "PT023", "PT024", "PT025", "PT026", "PT028", "PT029", "PT03",
61+
"PT",
6262
"Q",
6363
"RSE",
6464
"RET",
@@ -101,6 +101,8 @@ ignore = [
101101
"FIX002", # TODOs need some love but we will probably not get of them
102102
"D211", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible.
103103
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible.
104+
"PT009", # We are using a different style of tests (official Django tests), so it does not make sense to try to fix it
105+
"PT027", # Same ^
104106
]
105107

106108
# Allow autofix for all enabled rules (when `--fix`) is provided.

0 commit comments

Comments
 (0)