mirror of https://github.com/zulip/zulip.git
ruff: Enable annotations errors.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
46955da3a0
commit
cc01c68aa9
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue