Skip to content

Commit af9285f

Browse files
committed
Fix style failures
1 parent 71bb4c5 commit af9285f

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

src/confcom/azext_confcom/command/fragment_references_from_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111

1212

1313
def fragment_references_from_image(image: str, minimum_svn: Optional[str]) -> str:
14-
return print(json.dumps(list(lib_fragment_references_from_image(image, minimum_svn))))
14+
return print(json.dumps(list(lib_fragment_references_from_image(image, minimum_svn))))

src/confcom/azext_confcom/custom.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@
2424
print_existing_policy_from_yaml, print_func, str_to_sha256)
2525
from azext_confcom.command.fragment_attach import fragment_attach as _fragment_attach
2626
from azext_confcom.command.fragment_push import fragment_push as _fragment_push
27-
from azext_confcom.command.containers_from_image import containers_from_image as _containers_from_image
28-
from azext_confcom.command.fragment_references_from_image import fragment_references_from_image as _fragment_references_from_image
27+
from azext_confcom.command.containers_from_image import (
28+
containers_from_image as _containers_from_image
29+
)
30+
from azext_confcom.command.fragment_references_from_image import (
31+
fragment_references_from_image as _fragment_references_from_image
32+
)
2933
from knack.log import get_logger
3034
from pkg_resources import parse_version
3135

src/confcom/azext_confcom/lib/cose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ def cose_get_properties(file_path: Path):
6363
"iss": re.search(r"^iss:\s*(.*)$", cose_print_output, re.MULTILINE).group(1),
6464
"feed": re.search(r"^feed:[ \t]*([^\r\n]*)", cose_print_output, re.MULTILINE).group(1),
6565
"payload": re.search(r"^payload:\s*(.*)", cose_print_output, re.MULTILINE | re.DOTALL).group(1),
66-
}
66+
}

src/confcom/azext_confcom/lib/fragments.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ def get_fragments_from_image(image_reference: str):
1818
fragment_path = Path(tempfile.gettempdir()) / sanitize_image_reference(reference)
1919
pull(reference, fragment_path)
2020

21-
for fragment_file in fragment_path.glob("*.rego.cose"):
22-
yield fragment_file
21+
yield from fragment_path.glob("*.rego.cose")

0 commit comments

Comments
 (0)