ruff: Enable annotations errors.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-11-15 21:32:34 -08:00
committed by Tim Abbott
parent 46955da3a0
commit cc01c68aa9

View File

@@ -100,6 +100,7 @@ django_settings_module = "zproject.settings"
[tool.ruff]
# See https://github.com/charliermarsh/ruff#rules for error code definitions.
select = [
"ANN", # annotations
"B", # bugbear
"C", # comprehensions
"E", # style errors
@@ -109,6 +110,9 @@ select = [
"W", # style warnings
]
ignore = [
"ANN101", # Missing type annotation for `self` in method
"ANN102", # Missing type annotation for `cls` in classmethod
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"B006", # Do not use mutable data structures for argument defaults
"B007", # Loop control variable not used within the loop body
"B008", # Do not perform function calls in argument defaults.