Skip to content

Commit

Permalink
Update black to 24.3.0 to fix GH security alert (#2139)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
  • Loading branch information
maliberty authored Jul 11, 2024
1 parent 46d8e5a commit 73cbe2b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
1 change: 1 addition & 0 deletions dependencies/includedyaml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import io


# ------------------------------------------------------------------------------
# XXX "Warnings control" is now deprecated. Leaving in the API function to not
# break code that uses it.
Expand Down
1 change: 1 addition & 0 deletions dependencies/includedyaml/constructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,7 @@ def set_python_instance_state(self, instance, state):
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):
Expand Down
6 changes: 3 additions & 3 deletions dependencies/includedyaml/emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,9 +834,9 @@ def analyze_scalar(self, scalar):
# 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.
Expand Down
14 changes: 8 additions & 6 deletions dependencies/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,14 @@ def from_metadata_yaml(metadata_yaml: str) -> Dict[str, "Tool"]:
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
Expand Down
2 changes: 1 addition & 1 deletion requirements_lint.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
black~=22.3.0
black~=24.3.0
flake8~=4.0.1
flake8-no-implicit-concat==0.3.3

0 comments on commit 73cbe2b

Please sign in to comment.