diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8d8abac..41eae81 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,4 @@ +default_install_hook_types: [pre-commit, pre-push] repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..afb416d --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,8 @@ +# Contributing + +## Development + +Run `pre-commit install` once per clone to install the commit and push hooks. + +- Commit hooks run the same lint, format, and validation checks as CI. +- Run everything with `pre-commit run --all-files --hook-stage pre-push`. diff --git a/README.md b/README.md index f6d8a4d..545ab38 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,13 @@ Script notes: - `f2b-dump.sh` uploads its report to termbin.com, a public paste service. Review the output first or remove the upload line. - `servarr/servarr_bot_merge.sh` expects a clone at `REPO_DIR` (set at the top of the script) with push access to `Servarr/Wiki`. +## Development + +Run `pre-commit install` once per clone to install the commit and push hooks. + +- Commit hooks run the same lint, format, and validation checks as CI. +- Run everything with `pre-commit run --all-files --hook-stage pre-push`. + ## Contributing Issues and pull requests welcome. See the [contributing guidelines](https://github.com/baker-scripts/.github/blob/main/CONTRIBUTING.md) and [open an issue](https://github.com/baker-scripts/StarrScripts/issues) to discuss larger changes. Run `pre-commit run --all-files` before committing.