Skip to content

Commit

Permalink
ruff: ignore ANN101, D200, and D205
Browse files Browse the repository at this point in the history
ANN101 is adding the type annotation "Self" to every method's self argument. This rule is controversial and in my opinion would be of little benefit for this project.
D200 and D205 are both about the exact formatting of docstrings. I am electing not to make any fixes for these rules since it would involve revising so documentation. This could be revisited in the future with project experts' input.
  • Loading branch information
garlic-os committed Jul 19, 2024
1 parent a0a9d3c commit 085146c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ default_section = "THIRDPARTY"

[tool.setuptools_scm]


[tool.ruff]
line-length = 120
src = ["tools", "test"]
Expand All @@ -84,7 +83,7 @@ extend-select = [
"ANN", # annotations: https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
"PTH", # use-pathlib-pth: https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth
]
ignore = ["D212"]
ignore = ["ANN101", "D200", "D205", "D212"]

[tool.ruff.lint.pydocstyle]
convention = "google"
Expand Down

0 comments on commit 085146c

Please sign in to comment.