@@ -197,7 +197,7 @@ exclude = [
197197]
198198indent-width = 4
199199line-length = 99 # See also `max-line-length` in [tool.ruff.lint.pycodestyle]
200- preview = true # Enable new rules that are not yet stable, like DOC
200+ preview = true # Enable new rules that are not yet stable, like DOC
201201
202202# Formatting options for Ruff
203203
@@ -214,6 +214,7 @@ quote-style = 'single' # But double quotes in docstrings (PEP 8, PEP 25
214214select = [
215215 # Various rules
216216 #'C90', # https://docs.astral.sh/ruff/rules/#mccabe-c90
217+ #'D', # https://docs.astral.sh/ruff/rules/#pydocstyle-d
217218 'F', # https://docs.astral.sh/ruff/rules/#pyflakes-f
218219 #'FLY', # https://docs.astral.sh/ruff/rules/#flynt-fly
219220 #'FURB', # https://docs.astral.sh/ruff/rules/#refurb-furb
@@ -273,9 +274,14 @@ select = [
273274# Ignore specific rules globally
274275ignore = [
275276 'COM812', # https://docs.astral.sh/ruff/rules/missing-trailing-comma/
276- # The following covered by [tool.pydoclint] section below
277- 'D', # https://docs.astral.sh/ruff/rules/#pydocstyle-d
277+ # The following is replaced by 'D'/[tool.ruff.lint.pydocstyle] and [tool.pydoclint]
278278 'DOC', # https://docs.astral.sh/ruff/rules/#pydoclint-doc
279+ # Disable, as [tool.format_docstring] split one-line docstrings into the canonical multi-line layout
280+ 'D200', # https://docs.astral.sh/ruff/rules/unnecessary-multiline-docstring/
281+ # Temporary:
282+ 'D100', # https://docs.astral.sh/ruff/rules/undocumented-public-module/#undocumented-publi-module-d100
283+ 'D104', # https://docs.astral.sh/ruff/rules/undocumented-public-package/#undocumented-public-package-d104
284+ 'DTZ005', # https://docs.astral.sh/ruff/rules/call-datetime-now-without-tzinfo/#call-datetime-now-without-tzinfo-dtz005
279285]
280286
281287# Ignore specific rules in certain files or directories
@@ -285,6 +291,7 @@ ignore = [
285291]
286292'tests/**' = [
287293 'ANN', # https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
294+ 'D', # https://docs.astral.sh/ruff/rules/#pydocstyle-d
288295 'DOC', # https://docs.astral.sh/ruff/rules/#pydoclint-doc
289296 'INP001', # https://docs.astral.sh/ruff/rules/implicit-namespace-package/
290297 'S101', # https://docs.astral.sh/ruff/rules/assert/
@@ -316,6 +323,9 @@ max-complexity = 10
316323max-line-length = 99 # See also `line-length` in [tool.ruff]
317324max-doc-length = 72
318325
326+ [tool.ruff.lint.pydocstyle]
327+ convention = 'numpy'
328+
319329#############################
320330# Configuration for pydoclint
321331#############################
@@ -349,4 +359,4 @@ exclude = '\.' # Temporarily disable format-docstring until we are ready
349359docstring_style = 'numpy'
350360line_length = 72
351361fix_rst_backticks = true
352- verbose = 'default' # or 'diff' to show changes made to docstrings
362+ verbose = 'default'
0 commit comments