Skip to content
Snippets Groups Projects
Unverified Commit 73cbe2bf authored by Matt Liberty's avatar Matt Liberty Committed by GitHub
Browse files

Update black to 24.3.0 to fix GH security alert (#2139)


Signed-off-by: default avatarMatt Liberty <mliberty@precisioninno.com>
parent 46d8e5a0
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@ except ImportError:
import io
# ------------------------------------------------------------------------------
# XXX "Warnings control" is now deprecated. Leaving in the API function to not
# break code that uses it.
......
......@@ -856,6 +856,7 @@ UnsafeConstructor.add_multi_constructor(
UnsafeConstructor.construct_python_object_apply,
)
# Constructor is same as UnsafeConstructor. Need to leave this in place in case
# people have extended it directly.
class Constructor(UnsafeConstructor):
......
......@@ -834,9 +834,9 @@ class Emitter:
# Spaces followed by breaks, as well as special character are only
# allowed for double quoted scalars.
if space_break or special_characters:
allow_flow_plain = (
allow_block_plain
) = allow_single_quoted = allow_block = False
allow_flow_plain = allow_block_plain = allow_single_quoted = allow_block = (
False
)
# Although the plain scalar writer supports breaks, we never emit
# multiline plain scalars.
......
......@@ -84,12 +84,14 @@ class Tool(object):
commit=tool["commit"],
build_script=tool.get("build") or "",
default_branch=tool.get("default_branch") or None,
in_container=tool["in_container"]
if tool.get("in_container") is not None
else True,
in_install=tool["in_install"]
if tool.get("in_install") is not None
else True,
in_container=(
tool["in_container"]
if tool.get("in_container") is not None
else True
),
in_install=(
tool["in_install"] if tool.get("in_install") is not None else True
),
pdk=tool.get("pdk") or False,
)
return final_dict
......
black~=22.3.0
black~=24.3.0
flake8~=4.0.1
flake8-no-implicit-concat==0.3.3
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment