Skip to content

Commit d6da99f

Browse files
Add pyupgrade rules to ruff
1 parent 982d7e0 commit d6da99f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ extend-ignore = [
109109
"ANN101",
110110
"B904",
111111
"PLW2901",
112+
# we prefer explicit to implicit open modes
113+
"UP015",
112114
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
113115
"W191",
114116
"E111",
@@ -142,6 +144,7 @@ select = [
142144
"PLW",
143145
"S",
144146
"U",
147+
"UP",
145148
"W",
146149
"YTT",
147150
]

0 commit comments

Comments
 (0)