From 321f66aa370604c64f555e980bf90613f8dc6063 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 04:27:55 +0000 Subject: [PATCH] chore(lint): enable DOC501 rule (document raised exceptions) Add DOC501 to the select list. This ensures raised exceptions are documented in docstrings' Raises section, improving API docs generated by pdoc. Only DOC501 is added (not full DOC category) since DOC201 was rejected. Co-Authored-By: AJ Steers --- .ruff.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/.ruff.toml b/.ruff.toml index f0b61926a..4a68e9e1c 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -18,6 +18,7 @@ select = [ "COM", # flake8-commas "CPY", # missing copyright notice "D", # pydocstyle (Docstring conventions) + "DOC501", # pydoclint: raised exceptions missing from docstring "DTZ", # flake8-datetimez "E", # pycodestyle (errors) "ERA", # flake8-eradicate (commented out code)