Skip to content

Commit

Permalink
chore: require f-strings
Browse files Browse the repository at this point in the history
We previously converted all string formatting to use f-strings. Enable
pylint check to enforce this.
  • Loading branch information
JohnVillalovos committed Jun 1, 2022
1 parent 7119f2d commit 96e994d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gitlab/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 96e994d

Please sign in to comment.