From 96e994d9c5c1abd11b059fe9f0eec7dac53d2f3a Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Wed, 1 Jun 2022 08:34:18 -0700 Subject: [PATCH] chore: require f-strings We previously converted all string formatting to use f-strings. Enable pylint check to enforce this. --- gitlab/base.py | 6 +++--- pyproject.toml | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gitlab/base.py b/gitlab/base.py index 8a5da4d7f..6e7d5c584 100644 --- a/gitlab/base.py +++ b/gitlab/base.py @@ -73,9 +73,9 @@ def __init__( ) -> None: if not isinstance(attrs, dict): raise GitlabParsingError( - "Attempted to initialize RESTObject with a non-dictionary value: " - "{!r}\nThis likely indicates an incorrect or malformed server " - "response.".format(attrs) + f"Attempted to initialize RESTObject with a non-dictionary value: " + f"{attrs!r}\nThis likely indicates an incorrect or malformed server " + f"response." ) self.__dict__.update( { diff --git a/pyproject.toml b/pyproject.toml index 0480feba3..0f16350dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,6 @@ disable = [ "arguments-renamed", "attribute-defined-outside-init", "broad-except", - "consider-using-f-string", "consider-using-generator", "consider-using-sys-exit", "cyclic-import", pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy