Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
format files for the black version update
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
maliberty committed Jul 9, 2024
1 parent 757cdf2 commit 722c1d2
Showing 4 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions dependencies/includedyaml/__init__.py
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@

import io


# ------------------------------------------------------------------------------
# XXX "Warnings control" is now deprecated. Leaving in the API function to not
# break code that uses it.
1 change: 1 addition & 0 deletions dependencies/includedyaml/constructor.py
Original file line number Diff line number Diff line change
@@ -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):
6 changes: 3 additions & 3 deletions dependencies/includedyaml/emitter.py
Original file line number Diff line number Diff line change
@@ -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.
14 changes: 8 additions & 6 deletions dependencies/tool.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 722c1d2

Please sign in to comment.