Skip to content

Commit 9b5a4d4

Browse files
committed
Configure ruff docstring linting
1 parent e70e2c2 commit 9b5a4d4

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,18 @@ pytest-cov = "^6.0.0"
3434
[build-system]
3535
build-backend = "poetry.core.masonry.api"
3636
requires = ["poetry-core"]
37+
38+
[tool.ruff.lint]
39+
select = [
40+
"D",
41+
# imperative mood for all docstrings
42+
"D401",
43+
]
44+
45+
ignore = [
46+
# no blank lines allowed after function docstring
47+
"D202",
48+
]
49+
50+
[tool.ruff.lint.pydocstyle]
51+
convention = "numpy"

0 commit comments

Comments
 (0)