apply black to the whole codebase.

This commit is contained in:
Goffi 2026-03-09 09:22:04 +01:00
commit 82e2c6efac

View file

@ -63,16 +63,14 @@ GET_IP_LABEL = D_("Allow external get IP")
GET_IP_CATEGORY = "General"
GET_IP_NAME = "allow_get_ip"
GET_IP_CONFIRM_TITLE = D_("Confirm external site request")
GET_IP_CONFIRM = D_(
"""To facilitate data transfer, we need to contact a website.
GET_IP_CONFIRM = D_("""To facilitate data transfer, we need to contact a website.
A request will be done on {page}
That means that administrators of {domain} can know that you use "{app_name}" and your IP Address.
IP address is an identifier to locate you on Internet (similar to a phone number).
Do you agree to do this request ?
"""
).format(
""").format(
page=GET_IP_PAGE,
domain=urllib.parse.urlparse(GET_IP_PAGE).netloc,
app_name=C.APP_NAME,
@ -87,9 +85,7 @@ PARAMS = """
</category>
</general>
</params>
""".format(
category=GET_IP_CATEGORY, name=GET_IP_NAME, label=GET_IP_LABEL
)
""".format(category=GET_IP_CATEGORY, name=GET_IP_NAME, label=GET_IP_LABEL)
class IPPlugin(object):