Skip to content

Commit 6113241

Browse files
committed
Enable ruff linter preview, add "DOC102" rule
1 parent e58e4c7 commit 6113241

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ requires = ["poetry-core"]
3636

3737

3838
[tool.ruff.lint]
39+
preview = true # enable preview mode (https://docs.astral.sh/ruff/preview/)
3940
exclude = [
4041
"tests/interactive-imagej/*", # no linting for the interactive test scripts
4142
]
@@ -46,6 +47,8 @@ select = [
4647
"D401", # imperative mood for all docstrings
4748
"D415", # summary line has to end in a punctuation mark
4849
"D417", # require documentation for *all* function parameters
50+
"DOC102", # check for parameters which are not in the function signature
51+
# "DOC101", # enable as soon as ruff/pull/21076 has been merged!
4952

5053
]
5154

0 commit comments

Comments
 (0)