From 2631e37bc63593fd08ddb26eba97ee6aae9d83fc Mon Sep 17 00:00:00 2001 From: Vasu Bhatia Date: Sun, 7 Dec 2025 17:52:18 +0000 Subject: [PATCH] ruff: Update config to include docstrings and type annotations --- python/pyproject.toml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/python/pyproject.toml b/python/pyproject.toml index af180b0f..7e6e5561 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -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"