Skip to content

Commit

Permalink
Enabel D213 and D410 rules
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Dec 27, 2023
1 parent 3170401 commit 5d983e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ select = [
"W", # pycodestyle warnings
"YTT", # flake8-2020
]
extend-select = [
"D213", # Summary lines should be positioned on the second physical line of the docstring.
"D410", # A blank line after section headings.
]
ignore = [
"D200", # One-line docstring should fit on one line
"D205", # 1 blank line required between summary line and description
Expand Down Expand Up @@ -161,6 +165,8 @@ known-third-party = ["pygmt"]
max-doc-length = 88

[tool.ruff.lint.pydocstyle]
# See https://docs.astral.sh/ruff/faq/#does-ruff-support-numpy-or-google-style-docstrings
# for the enabled/disabled rules for the "numpy" convention.
convention = "numpy"

[tool.ruff.lint.pylint]
Expand Down

0 comments on commit 5d983e6

Please sign in to comment.