ruff: Update config to include docstrings and type annotations

This commit is contained in:
Vasu Bhatia 2025-12-07 17:52:18 +00:00
parent f4cff2c129
commit 2631e37bc6

View File

@ -17,15 +17,22 @@ target-version = "py311"
[tool.ruff.lint]
select = [
"E",
"W",
"F",
"I",
"B",
"C4",
"UP",
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ANN", # flake8-annotations (type hints)
"D", # pydocstyle (docstrings)
]
ignore = [
"D203", # one-blank-line-before-class (conflicts with D211)
"D213", # multi-line-summary-second-line (conflicts with D212)
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
]
ignore = []
[tool.ruff.format]
quote-style = "double"