From 7e5b892bd8b3b6e40263affe441d9f492bc49068 Mon Sep 17 00:00:00 2001 From: Christiaan Meijer Date: Mon, 1 Sep 2025 11:43:30 +0200 Subject: [PATCH] Remove deprecated linting rules from pyproject.toml.jinja [ANN101](https://docs.astral.sh/ruff/rules/missing-type-self/) and [ANN102](https://docs.astral.sh/ruff/rules/missing-type-cls/) have been removed and referencing them in the config causes warnings to be printed when ruff is run. See also https://github.com/WUR-AI/diffWOFOST/pull/12#issuecomment-3233707741 --- template/pyproject.toml.jinja | 2 -- 1 file changed, 2 deletions(-) diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index d50700be..72076ab7 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -120,8 +120,6 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" # Enable Pyflakes `E` and `F` codes by default. select = ["ALL"] ignore = [ - "ANN101", # Missing type annotation for `self` in method - "ANN102", # Missing type annotation for `cls` in classmethod "ANN204", # Missing return type annotation for special (dunder) method "FBT", # Using boolean function arguments "TD", # TODOs