Skip to content

Commit 5f1a978

Browse files
committed
Add ruff rule PIE810 multiple-starts-ends-with
1 parent cb8ee3b commit 5f1a978

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

news/13426.trivial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Add ruff rules PIE for minor optimizations to avoid repeated calls to str.startswith and str.endswith.
1+
Add ruff rule PIE810 for minor optimizations to avoid repeated calls to str.startswith and str.endswith.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ select = [
183183
"I",
184184
"ISC",
185185
"PERF",
186-
"PIE",
186+
"PIE810",
187187
"PLE",
188188
"PLR0",
189189
"RUF100",

0 commit comments

Comments
 (0)