提交 e44ab01c authored 作者: Virgile Andreani's avatar Virgile Andreani 提交者: Ricardo Vieira

Enable the ruff rule ensuring explicit strictness for zips

上级 19dafe42
......@@ -129,8 +129,12 @@ exclude = ["doc/", "pytensor/_version.py"]
docstring-code-format = true
[tool.ruff.lint]
select = ["C", "E", "F", "I", "UP", "W", "RUF", "PERF", "PTH", "ISC"]
select = ["B905", "C", "E", "F", "I", "UP", "W", "RUF", "PERF", "PTH", "ISC"]
ignore = ["C408", "C901", "E501", "E741", "RUF012", "PERF203", "ISC001"]
unfixable = [
# zip-strict: the auto-fix adds `strict=False` but we might want `strict=True` instead
"B905",
]
[tool.ruff.lint.isort]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论