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] [tool.ruff.lint]
select = [ select = [
"E", "E", # pycodestyle errors
"W", "W", # pycodestyle warnings
"F", "F", # pyflakes
"I", "I", # isort
"B", "B", # flake8-bugbear
"C4", "C4", # flake8-comprehensions
"UP", "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] [tool.ruff.format]
quote-style = "double" quote-style = "double"