Skip to content

Commit 6c71dcf

Browse files
chore: add D212 lint rule to enforce Google-style docstrings
Github-Issue: #1890
1 parent df039bf commit 6c71dcf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ extend-exclude = ["README.md"]
127127
select = [
128128
"C4", # flake8-comprehensions
129129
"C90", # mccabe
130+
"D212", # pydocstyle: multi-line docstring summary should start at the first line
130131
"E", # pycodestyle
131132
"F", # pyflakes
132133
"I", # isort
@@ -135,7 +136,9 @@ select = [
135136
"UP", # pyupgrade
136137
]
137138
ignore = ["PERF203", "PLC0415", "PLR0402"]
138-
mccabe.max-complexity = 24 # Default is 10
139+
140+
[tool.ruff.lint.mccabe]
141+
max-complexity = 24 # Default is 10
139142

140143
[tool.ruff.lint.per-file-ignores]
141144
"__init__.py" = ["F401"]

0 commit comments

Comments
 (0)