Skip to content

Commit c590398

Browse files
committed
ruff: PT - simplify rules
1 parent 90214e2 commit c590398

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ruff.toml

Lines changed: 4 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",
@@ -72,6 +72,7 @@ select = [
7272
"FLY",
7373
"I",
7474
"C90",
75+
"PT",
7576
"NPY",
7677
"PD",
7778
"N803", "N804", "N811", "N812", "N813", "N814", "N817", "N818", "N999",
@@ -101,6 +102,8 @@ ignore = [
101102
"FIX002", # TODOs need some love but we will probably not get of them
102103
"D211", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible.
103104
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible.
105+
"PT009", # We are using a different style of tests (official Django tests), so it does not make sense to try to fix it
106+
"PT027", # Same ^
104107
]
105108

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

0 commit comments

Comments
 (0)