diff --git a/pyproject.toml b/pyproject.toml index afac7f2a8f..3257bc04e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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.