Skip to content

Commit f39601b

Browse files
authored
Merge pull request #77 from homebysix/1.15.0
1.15.0 merge to main
2 parents 1ebede1 + ac89be2 commit f39601b

5 files changed

Lines changed: 23 additions & 11 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

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ All notable changes to this project will be documented in this file. This projec
1414

1515
Nothing yet.
1616

17+
## [1.15.0] - 2024-02-11
18+
19+
### Added
20+
21+
- Now validates that all XML `<result>` tags are closed in Jamf extension attributes (#76, thanks to @WardsParadox).
22+
23+
### Fixed
24+
25+
- Fixed a bug in the `munki-makecatalogs` hook (#72, thanks to @kbrewersq).
26+
- Added optional `--munki-repo` parameter to `check-munki-pkgsinfo` and `munki-makecatalogs` hooks, in order to specify a path to your Munki repo. Useful for situations where the Munki repo is a subdirectory of the Git repo itself. (#73 and #74, thanks to @kbrewersq).
27+
1728
## [1.14.1] - 2023-11-20
1829

1930
### Fixed
@@ -324,7 +335,8 @@ Nothing yet.
324335

325336
- Initial release
326337

327-
[Unreleased]: https://github.com/homebysix/pre-commit-macadmin/compare/v1.14.1...HEAD
338+
[Unreleased]: https://github.com/homebysix/pre-commit-macadmin/compare/v1.15.0...HEAD
339+
[1.15.0]: https://github.com/homebysix/pre-commit-macadmin/compare/v1.14.1...v1.15.0
328340
[1.14.1]: https://github.com/homebysix/pre-commit-macadmin/compare/v1.14.0...v1.14.1
329341
[1.14.0]: https://github.com/homebysix/pre-commit-macadmin/compare/v1.13.0...v1.14.0
330342
[1.13.0]: https://github.com/homebysix/pre-commit-macadmin/compare/v1.12.4...v1.13.0

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For any hook in this repo you wish to use, add the following to your pre-commit
1515

1616
```yaml
1717
- repo: https://github.com/homebysix/pre-commit-macadmin
18-
rev: v1.14.0
18+
rev: v1.15.0
1919
hooks:
2020
- id: check-plists
2121
# - id: ...
@@ -132,7 +132,7 @@ When combining arguments that take lists (for example: `--required-keys`, `--cat
132132

133133
```yaml
134134
- repo: https://github.com/homebysix/pre-commit-macadmin
135-
rev: v1.14.0
135+
rev: v1.15.0
136136
hooks:
137137
- id: check-munki-pkgsinfo
138138
args: ['--catalogs', 'testing', 'stable', '--']
@@ -142,7 +142,7 @@ But if you also use the `--categories` argument, you would move the trailing `--
142142

143143
```yaml
144144
- repo: https://github.com/homebysix/pre-commit-macadmin
145-
rev: v1.14.0
145+
rev: v1.15.0
146146
hooks:
147147
- id: check-munki-pkgsinfo
148148
args: ['--catalogs', 'testing', 'stable', '--categories', 'Design', 'Engineering', 'Web Browsers', '--']
@@ -154,7 +154,7 @@ If it looks better to your eye, feel free to use a multi-line list for long argu
154154

155155
```yaml
156156
- repo: https://github.com/homebysix/pre-commit-macadmin
157-
rev: v1.14.0
157+
rev: v1.15.0
158158
hooks:
159159
- id: check-munki-pkgsinfo
160160
args: [

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(

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
name="pre-commit-macadmin",
88
description="Pre-commit hooks for Mac admins, client engineers, and IT consultants.",
99
url="https://github.com/homebysix/pre-commit-macadmin",
10-
version="1.14.0",
10+
version="1.15.0",
1111
author="Elliot Jordan",
1212
author_email="elliot@elliotjordan.com",
1313
packages=["pre_commit_hooks"],

0 commit comments

Comments
 (0)