Skip to content

Commit ac89be2

Browse files
committed
Update pre-commit config
1 parent a618d58 commit ac89be2

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ repos:
1717
- id: trailing-whitespace
1818
args: [--markdown-linebreak-ext=md]
1919
- repo: https://github.com/python/black
20-
rev: 23.11.0
20+
rev: 24.1.1
2121
hooks:
2222
- id: black

pre_commit_hooks/check_munki_pkgsinfo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ def build_argument_parser():
3636
)
3737
parser.add_argument("filenames", nargs="*", help="Filenames to check.")
3838
parser.add_argument(
39-
"--munki-repo",
40-
default=".",
41-
help="path to local munki repo defaults to '.'"
39+
"--munki-repo", default=".", help="path to local munki repo defaults to '.'"
4240
)
4341
parser.add_argument(
4442
"--warn-on-missing-icons",
@@ -146,7 +144,9 @@ def main(argv=None):
146144

147145
# Check for missing or case-conflicted installer items
148146
if not _check_case_sensitive_path(
149-
os.path.join(args.munki_repo, "pkgs", pkginfo.get("installer_item_location", ""))
147+
os.path.join(
148+
args.munki_repo, "pkgs", pkginfo.get("installer_item_location", "")
149+
)
150150
):
151151
print(
152152
"{}: installer item does not exist or path is not case sensitive".format(

0 commit comments

Comments
 (0)