From 085146c08e3974e1956c1393b5fb4cfb48183e6a Mon Sep 17 00:00:00 2001 From: Nate Kean <14845347+garlic-os@users.noreply.github.com> Date: Thu, 18 Jul 2024 20:45:47 -0500 Subject: [PATCH] ruff: ignore ANN101, D200, and D205 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. --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9b197931..8ac60185 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,7 +67,6 @@ default_section = "THIRDPARTY" [tool.setuptools_scm] - [tool.ruff] line-length = 120 src = ["tools", "test"] @@ -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"