ruff/scripts/pyproject.toml
Evan Rittenhouse 190bed124f
[perflint] Implement try-except-in-loop (PERF203) (#5166)
## 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`
2023-06-26 17:34:37 +00:00

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"