Skip to content

Commit d299753

Browse files
committed
chore: make latest black happy with existing code
1 parent a038e95 commit d299753

File tree

3 files changed

+37
-9
lines changed

3 files changed

+37
-9
lines changed

gitlab/tests/objects/test_commits.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,13 @@ def test_create_commit(project, resp_create_commit):
8888
data = {
8989
"branch": "master",
9090
"commit_message": "Commit message",
91-
"actions": [{"action": "create", "file_path": "README", "content": "",}],
91+
"actions": [
92+
{
93+
"action": "create",
94+
"file_path": "README",
95+
"content": "",
96+
}
97+
],
9298
}
9399
commit = project.commits.create(data)
94100
assert commit.short_id == "ed899a2f"

gitlab/tests/objects/test_runners.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ def resp_runner_delete():
167167
status=200,
168168
)
169169
rsps.add(
170-
method=responses.DELETE, url=pattern, status=204,
170+
method=responses.DELETE,
171+
url=pattern,
172+
status=204,
171173
)
172174
yield rsps
173175

@@ -177,7 +179,9 @@ def resp_runner_disable():
177179
with responses.RequestsMock() as rsps:
178180
pattern = re.compile(r".*?/(groups|projects)/1/runners/6")
179181
rsps.add(
180-
method=responses.DELETE, url=pattern, status=204,
182+
method=responses.DELETE,
183+
url=pattern,
184+
status=204,
181185
)
182186
yield rsps
183187

@@ -187,7 +191,9 @@ def resp_runner_verify():
187191
with responses.RequestsMock() as rsps:
188192
pattern = re.compile(r".*?/runners/verify")
189193
rsps.add(
190-
method=responses.POST, url=pattern, status=200,
194+
method=responses.POST,
195+
url=pattern,
196+
status=200,
191197
)
192198
yield rsps
193199

gitlab/v4/objects.py

+21-5
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,14 @@ class ProjectDeployTokenManager(ListMixin, CreateMixin, DeleteMixin, RESTManager
711711
_from_parent_attrs = {"project_id": "id"}
712712
_obj_cls = ProjectDeployToken
713713
_create_attrs = (
714-
("name", "scopes",),
715-
("expires_at", "username",),
714+
(
715+
"name",
716+
"scopes",
717+
),
718+
(
719+
"expires_at",
720+
"username",
721+
),
716722
)
717723

718724

@@ -725,8 +731,14 @@ class GroupDeployTokenManager(ListMixin, CreateMixin, DeleteMixin, RESTManager):
725731
_from_parent_attrs = {"group_id": "id"}
726732
_obj_cls = GroupDeployToken
727733
_create_attrs = (
728-
("name", "scopes",),
729-
("expires_at", "username",),
734+
(
735+
"name",
736+
"scopes",
737+
),
738+
(
739+
"expires_at",
740+
"username",
741+
),
730742
)
731743

732744

@@ -4181,7 +4193,11 @@ class ProjectServiceManager(GetMixin, UpdateMixin, DeleteMixin, ListMixin, RESTM
41814193
),
41824194
),
41834195
"jira": (
4184-
("url", "username", "password",),
4196+
(
4197+
"url",
4198+
"username",
4199+
"password",
4200+
),
41854201
(
41864202
"api_url",
41874203
"active",

0 commit comments

Comments
 (0)