Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update black to 24.3.0 to fix GH security alert #2139

Merged
merged 2 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading