Skip to content

Commit

Permalink
Add D1 pydocstyle rules to pyproject.toml (apache#40569)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferruzzi authored and romsharon98 committed Jul 26, 2024
1 parent ec259bc commit 86e0d47
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,7 @@ extend-select = [
"RUF019", # Checks for unnecessary key check
"RUF100", # Unused noqa (auto-fixable)
# We ignore more pydocstyle than we enable, so be more selective at what we enable
"D101",
"D106",
"D1",
"D2",
"D213", # Conflicts with D212. Both can not be enabled.
"D3",
Expand All @@ -299,6 +298,12 @@ extend-select = [
"TRY002", # Prohibit use of `raise Exception`, use specific exceptions instead.
]
ignore = [
"D100", # TODO: Missing docstring in public module
"D102", # TODO: Missing docstring in public method
"D103", # TODO: Missing docstring in public function
"D104", # TODO: Missing docstring in public package
"D105", # Do not want. See https://lists.apache.org/thread/8jbg1dd2lr2cfydtqbjxsd6pb6q2wkc3
"D107", # TODO: Missing docstring in __init__
"D203",
"D212", # Conflicts with D213. Both can not be enabled.
"D214",
Expand Down

0 comments on commit 86e0d47

Please sign in to comment.