mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 13:51:37 +00:00

## Summary Implements PERF203 from #4789, which throws if a `try/except` block is inside of a loop. Not sure if we want to extend the diagnostic to the `except` as well, but I thought that that may get a little messy. We may also want to just throw on the word `try` - open to suggestions though. ## Test Plan `cargo test`
28 lines
515 B
TOML
28 lines
515 B
TOML
[project]
|
|
name = "scripts"
|
|
version = "0.0.1"
|
|
dependencies = ["sphinx"]
|
|
requires-python = ">=3.8"
|
|
|
|
[tool.black]
|
|
line-length = 88
|
|
|
|
[tool.ruff]
|
|
line-length = 88
|
|
select = ["ALL"]
|
|
ignore = [
|
|
"C901", # McCabe complexity
|
|
"D", # pydocstyle
|
|
"PL", # pylint
|
|
"S", # bandit
|
|
"G", # flake8-logging
|
|
"T", # flake8-print
|
|
"FBT", # flake8-boolean-trap
|
|
"PERF", # perflint
|
|
]
|
|
|
|
[tool.ruff.isort]
|
|
required-imports = ["from __future__ import annotations"]
|
|
|
|
[tool.ruff.pydocstyle]
|
|
convention = "pep257"
|