Skip to content

Commit 41c7f20

Browse files
committed
fix: Update Ruff linting configuration by removing unnecessary docstring ignores and simplifying settings
1 parent bb066d5 commit 41c7f20

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

py/pyproject.toml

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -144,38 +144,9 @@ respect-gitignore = true
144144
target-version = "py39"
145145

146146
[tool.ruff.lint]
147-
extend-select = ["E4", "E7", "E9", "F", "I", "E501", "RUF022", "TID252", "D"]
147+
extend-select = ["E4", "E7", "E9", "F", "I", "E501", "RUF022", "TID252"]
148148
fixable = ["ALL"]
149149

150-
extend-ignore = [
151-
"D103", # Missing docstring in public function
152-
"D102", # Missing docstring in public method
153-
"D100", # Missing docstring in public module
154-
"D205", # 1 blank line required between summary line and description
155-
"D107", # Missing docstring in `__init__`
156-
"D101", # Missing docstring in public class
157-
"D104", # Missing docstring in public package
158-
"D209", # Multi-line docstring closing quotes should be on a separate line
159-
"D202", # No blank lines allowed after function docstring (found 1)
160-
"D105", # Missing docstring in magic method
161-
"D415", # First line should end with a period, question mark, or exclamation point
162-
"D212", # Multi-line docstring summary should start at the first line
163-
"D200", # One-line docstring should fit on one line
164-
"D411", # Missing blank line before section ("Example")
165-
"D301", # Use `r"""` if any backslashes in a docstring
166-
"D412", # No blank lines allowed between a section header and its content ("Example")
167-
"D410", # Missing blank line after section ("Example")
168-
"D419", # Docstring is empty
169-
"D417", # Missing argument descriptions in the docstring for `__init__`: `duration`, `source`
170-
"D416" # Section name should end with a colon ("Returns")
171-
]
172-
173-
[tool.ruff.lint.per-file-ignores]
174-
"*.py" = ["D"]
175-
176-
[tool.ruff.lint.pydocstyle]
177-
convention = "google"
178-
179150
[tool.ruff.format]
180151
docstring-code-format = true
181152
docstring-code-line-length = 120

0 commit comments

Comments
 (0)