Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Loading