Skip to content

Commit cd391e7

Browse files
vapierLUCI
authored andcommitted
black: update to v25
Requires a little reformatting in the tree. Change-Id: Iaa40fe0dfca372c49c04cc26edccb5f7b0c2a8ad Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/462883 Commit-Queue: Mike Frysinger <[email protected]> Reviewed-by: Gavin Mak <[email protected]> Tested-by: Mike Frysinger <[email protected]>
1 parent 8310436 commit cd391e7

File tree

5 files changed

+36
-36
lines changed

5 files changed

+36
-36
lines changed

git_command.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ def _build_env(
238238
s = p + " " + s
239239
env["GIT_CONFIG_PARAMETERS"] = s
240240
if "GIT_ALLOW_PROTOCOL" not in env:
241-
env[
242-
"GIT_ALLOW_PROTOCOL"
243-
] = "file:git:http:https:ssh:persistent-http:persistent-https:sso:rpc"
241+
env["GIT_ALLOW_PROTOCOL"] = (
242+
"file:git:http:https:ssh:persistent-http:persistent-https:sso:rpc"
243+
)
244244
env["GIT_HTTP_USER_AGENT"] = user_agent.git
245245

246246
if objdir:
@@ -350,9 +350,9 @@ def __init__(
350350
"Project": e.project,
351351
"CommandName": command_name,
352352
"Message": str(e),
353-
"ReturnCode": str(e.git_rc)
354-
if e.git_rc is not None
355-
else None,
353+
"ReturnCode": (
354+
str(e.git_rc) if e.git_rc is not None else None
355+
),
356356
"IsError": log_as_error,
357357
}
358358
)

manifest_xml.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,9 +1014,9 @@ def PartialCloneExclude(self):
10141014

10151015
def SetManifestOverride(self, path):
10161016
"""Override manifestFile. The caller must call Unload()"""
1017-
self._outer_client.manifest.manifestFileOverrides[
1018-
self.path_prefix
1019-
] = path
1017+
self._outer_client.manifest.manifestFileOverrides[self.path_prefix] = (
1018+
path
1019+
)
10201020

10211021
@property
10221022
def UseLocalManifests(self):
@@ -2112,22 +2112,22 @@ def _CheckLocalPath(path, dir_ok=False, cwd_dot_ok=False):
21122112
# implementation:
21132113
# https://eclipse.googlesource.com/jgit/jgit/+/9110037e3e9461ff4dac22fee84ef3694ed57648/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectChecker.java#884
21142114
BAD_CODEPOINTS = {
2115-
"\u200C", # ZERO WIDTH NON-JOINER
2116-
"\u200D", # ZERO WIDTH JOINER
2117-
"\u200E", # LEFT-TO-RIGHT MARK
2118-
"\u200F", # RIGHT-TO-LEFT MARK
2119-
"\u202A", # LEFT-TO-RIGHT EMBEDDING
2120-
"\u202B", # RIGHT-TO-LEFT EMBEDDING
2121-
"\u202C", # POP DIRECTIONAL FORMATTING
2122-
"\u202D", # LEFT-TO-RIGHT OVERRIDE
2123-
"\u202E", # RIGHT-TO-LEFT OVERRIDE
2124-
"\u206A", # INHIBIT SYMMETRIC SWAPPING
2125-
"\u206B", # ACTIVATE SYMMETRIC SWAPPING
2126-
"\u206C", # INHIBIT ARABIC FORM SHAPING
2127-
"\u206D", # ACTIVATE ARABIC FORM SHAPING
2128-
"\u206E", # NATIONAL DIGIT SHAPES
2129-
"\u206F", # NOMINAL DIGIT SHAPES
2130-
"\uFEFF", # ZERO WIDTH NO-BREAK SPACE
2115+
"\u200c", # ZERO WIDTH NON-JOINER
2116+
"\u200d", # ZERO WIDTH JOINER
2117+
"\u200e", # LEFT-TO-RIGHT MARK
2118+
"\u200f", # RIGHT-TO-LEFT MARK
2119+
"\u202a", # LEFT-TO-RIGHT EMBEDDING
2120+
"\u202b", # RIGHT-TO-LEFT EMBEDDING
2121+
"\u202c", # POP DIRECTIONAL FORMATTING
2122+
"\u202d", # LEFT-TO-RIGHT OVERRIDE
2123+
"\u202e", # RIGHT-TO-LEFT OVERRIDE
2124+
"\u206a", # INHIBIT SYMMETRIC SWAPPING
2125+
"\u206b", # ACTIVATE SYMMETRIC SWAPPING
2126+
"\u206c", # INHIBIT ARABIC FORM SHAPING
2127+
"\u206d", # ACTIVATE ARABIC FORM SHAPING
2128+
"\u206e", # NATIONAL DIGIT SHAPES
2129+
"\u206f", # NOMINAL DIGIT SHAPES
2130+
"\ufeff", # ZERO WIDTH NO-BREAK SPACE
21312131
}
21322132
if BAD_CODEPOINTS & path_codepoints:
21332133
# This message is more expansive than reality, but should be fine.

run_tests.vpython3

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,40 +56,40 @@ wheel: <
5656

5757
wheel: <
5858
name: "infra/python/wheels/black-py3"
59-
version: "version:23.1.0"
59+
version: "version:25.1.0"
6060
>
6161

62-
# Required by black==23.1.0
62+
# Required by black==25.1.0
6363
wheel: <
6464
name: "infra/python/wheels/mypy-extensions-py3"
6565
version: "version:0.4.3"
6666
>
6767

68-
# Required by black==23.1.0
68+
# Required by black==25.1.0
6969
wheel: <
7070
name: "infra/python/wheels/tomli-py3"
7171
version: "version:2.0.1"
7272
>
7373

74-
# Required by black==23.1.0
74+
# Required by black==25.1.0
7575
wheel: <
7676
name: "infra/python/wheels/platformdirs-py3"
7777
version: "version:2.5.2"
7878
>
7979

80-
# Required by black==23.1.0
80+
# Required by black==25.1.0
8181
wheel: <
8282
name: "infra/python/wheels/pathspec-py3"
8383
version: "version:0.9.0"
8484
>
8585

86-
# Required by black==23.1.0
86+
# Required by black==25.1.0
8787
wheel: <
8888
name: "infra/python/wheels/typing-extensions-py3"
8989
version: "version:4.3.0"
9090
>
9191

92-
# Required by black==23.1.0
92+
# Required by black==25.1.0
9393
wheel: <
9494
name: "infra/python/wheels/click-py3"
9595
version: "version:8.0.3"

subcmds/diffmanifests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ def Execute(self, opt, args):
233233
)
234234
self.printRevision = self.out.nofmt_printer("revision", fg="yellow")
235235
else:
236-
self.printProject = (
237-
self.printAdded
238-
) = self.printRemoved = self.printRevision = self.printText
236+
self.printProject = self.printAdded = self.printRemoved = (
237+
self.printRevision
238+
) = self.printText
239239

240240
manifest1 = RepoClient(self.repodir)
241241
manifest1.Override(args[0], load_local_manifests=False)

tests/test_manifest_xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"foo~",
5252
"blah/foo~",
5353
# Block Unicode characters that get normalized out by filesystems.
54-
"foo\u200Cbar",
54+
"foo\u200cbar",
5555
# Block newlines.
5656
"f\n/bar",
5757
"f\r/bar",

0 commit comments

Comments
 (0)