From 6c1706db5cbb46cb91c66b1fced9201816338659 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Tue, 1 Dec 2026 08:43:24 -0600 Subject: [PATCH] ci: run the CI checks at pre-commit and pre-push Install the pre-push hook type with pre-commit, add the CI checks that were missing locally, and document the setup in README.md and CONTRIBUTING.md. Co-Authored-By: Claude Sonnet 5.5 --- .pre-commit-config.yaml | 1 + CONTRIBUTING.md | 8 ++++++++ README.md | 7 +++++++ 3 files changed, 16 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5fc83d1..bfb6f14 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 1c492b5..1296cd0 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,13 @@ A running qui-sync instance publishes this repo. Open qui-sync's Export tab, rev - [baker-scripts/StarrScripts](https://github.com/baker-scripts/StarrScripts) includes `qui-xseed.sh` for cross-seed automation. - [TRaSH-/qui_workflows](https://github.com/TRaSH-/qui_workflows) is the tier-based reference. +## 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), or [open an issue](https://github.com/baker-scripts/qui_workflows/issues) to discuss larger changes.