diff --git a/config/settings/local.py b/config/settings/local.py index 50ac7413..899ee6e8 100644 --- a/config/settings/local.py +++ b/config/settings/local.py @@ -55,6 +55,8 @@ import socket hostname, _, ips = socket.gethostbyname_ex(socket.gethostname()) + # This comes from the cookiecutter and while we don't like it, it's not worth the effort to fix yet + # ruff: noqa: RUF005 INTERNAL_IPS += [".".join(ip.split(".")[:-1] + ["1"]) for ip in ips] # django-extensions diff --git a/pyproject.toml b/pyproject.toml index 9a3043ac..703a5663 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,8 +81,10 @@ ignore = [ "DOC501", # add possible exceptions to the docstring (TODO) "ISC001", # handled by the formatter "RUF012", # need more widespread typing - "SIM102", # Use a single `if` statement instead of nested `if` statements - "SIM108", # Use ternary operator instead of `if`-`else`-block + "SIM102", # use a single `if` statement instead of nested `if` statements + "SIM108", # use ternary operator instead of `if`-`else`-block + "PERF401", # list comprehensions are harder to read in our opinion and not worth the performance gain + "PERF403", # dict comprehensions are harder to read in our opinion and not worth the performance gain ] [tool.ruff.lint.mccabe]