Skip to content

Commit 531c504

Browse files
committed
Passed modified sources through black, addressing check failure
1 parent b2e181f commit 531c504

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

pre_commit_hooks/check_jamf_json_manifests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"number": int,
2323
"object": dict,
2424
"real": float,
25-
"string": str
25+
"string": str,
2626
}
2727

2828
# List keys and their expected item types

pre_commit_hooks/check_preference_manifests.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ def validate_pfm_type_strings(subkey, filename):
184184
print(f'{filename}: WARNING: Subkey type "{subkey["pfm_type"]}" is deprecated')
185185
# passed = False
186186
elif subkey["pfm_type"] not in PLIST_TYPES:
187-
print(f'{filename}: Unexpected subkey type {subkey["pfm_type"]} for {subkey.get("pfm_name")}')
187+
print(
188+
f'{filename}: Unexpected subkey type {subkey["pfm_type"]} for {subkey.get("pfm_name")}'
189+
)
188190
passed = False
189191

190192
return passed
@@ -380,10 +382,7 @@ def validate_subkeys(subkeys, filename):
380382
passed = False
381383

382384
# Check default values to ensure consistent type
383-
if (
384-
type_passed
385-
and not validate_pfm_default(subkey, filename)
386-
):
385+
if type_passed and not validate_pfm_default(subkey, filename):
387386
passed = False
388387

389388
# Validate URLs

0 commit comments

Comments
 (0)