Skip to content

Commit 2671971

Browse files
committed
Enable the ruff rule ensuring explicit strictness for zips
1 parent e7ba4a8 commit 2671971

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,12 @@ exclude = ["doc/", "pytensor/_version.py"]
129129
docstring-code-format = true
130130

131131
[tool.ruff.lint]
132-
select = ["C", "E", "F", "I", "UP", "W", "RUF", "PERF", "PTH", "ISC"]
132+
select = ["B905", "C", "E", "F", "I", "UP", "W", "RUF", "PERF", "PTH", "ISC"]
133133
ignore = ["C408", "C901", "E501", "E741", "RUF012", "PERF203", "ISC001"]
134+
unfixable = [
135+
# zip-strict: the auto-fix adds `strict=False` but we might want `strict=True` instead
136+
"B905",
137+
]
134138

135139

136140
[tool.ruff.lint.isort]

0 commit comments

Comments
 (0)