autopkg / almenscorner-recipes

AutoPkg recipes for Munki and Intune
Apache License 2.0
2 stars 1 forks source link

Pre-commit, flake8, pylint, and plist standardization #1

Closed homebysix closed 1 year ago

homebysix commented 1 year ago

This PR adds a pre-commit configuration tailored to AutoPkg recipes, and this repository specifically.

To use this configuration, install pre-commit on your Mac (e.g. using brew install pre-commit), then cd to this repo and run pre-commit install. From that point on, each test in the config file must pass in order for a commit to be written.

Because this configuration lives in a file in the repo itself, it will be shared by any other contributors who have pre-commit installed, making it easy to ensure everybody's running the same tests.

Some more details and examples in this quick talk from MacDevOpsYVR: https://www.youtube.com/watch?v=1UCyGC6DVOU

This PR also includes plist standardization, for easier diff comparison when changes are submitted.