Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 96e994d

Browse filesBrowse files
chore: require f-strings
We previously converted all string formatting to use f-strings. Enable pylint check to enforce this.
1 parent 7119f2d commit 96e994d
Copy full SHA for 96e994d

File tree

Expand file treeCollapse file tree

2 files changed

+3
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-4
lines changed
Open diff view settings
Collapse file

‎gitlab/base.py‎

Copy file name to clipboardExpand all lines: gitlab/base.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ def __init__(
7373
) -> None:
7474
if not isinstance(attrs, dict):
7575
raise GitlabParsingError(
76-
"Attempted to initialize RESTObject with a non-dictionary value: "
77-
"{!r}\nThis likely indicates an incorrect or malformed server "
78-
"response.".format(attrs)
76+
f"Attempted to initialize RESTObject with a non-dictionary value: "
77+
f"{attrs!r}\nThis likely indicates an incorrect or malformed server "
78+
f"response."
7979
)
8080
self.__dict__.update(
8181
{
Collapse file

‎pyproject.toml‎

Copy file name to clipboardExpand all lines: pyproject.toml
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ disable = [
5151
"arguments-renamed",
5252
"attribute-defined-outside-init",
5353
"broad-except",
54-
"consider-using-f-string",
5554
"consider-using-generator",
5655
"consider-using-sys-exit",
5756
"cyclic-import",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.