Skip to content

Commit 7e5b892

Browse files
authored
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 WUR-AI/diffWOFOST#12 (comment)
1 parent 98f9e85 commit 7e5b892

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

template/pyproject.toml.jinja

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
120120
# Enable Pyflakes `E` and `F` codes by default.
121121
select = ["ALL"]
122122
ignore = [
123-
"ANN101", # Missing type annotation for `self` in method
124-
"ANN102", # Missing type annotation for `cls` in classmethod
125123
"ANN204", # Missing return type annotation for special (dunder) method
126124
"FBT", # Using boolean function arguments
127125
"TD", # TODOs

0 commit comments

Comments
 (0)