diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..42824dba --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,9 @@ +## Summary + + +## Checklist +- [ ] Fork synced with upstream master (`git merge upstream/master`) +- [ ] `ruff check && ruff format` passes +- [ ] `pytest tests/ --ignore=tests/sandbox -x` passes +- [ ] Plugin changes: `npx vitest run` in `paperforge/plugin/` passes +- [ ] No secrets, API keys, or `.env` files committed diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 27304e33..79310811 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,23 +1,10 @@ +# Pre-commit hooks — run automatically before every `git commit` +# Install: pip install pre-commit && pre-commit install + repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.0 + rev: v0.6.0 hooks: - id: ruff args: [--fix] - id: ruff-format - - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 - hooks: - - id: check-yaml - - id: check-toml - - id: end-of-file-fixer - - id: trailing-whitespace - - - repo: local - hooks: - - id: consistency-audit - name: PaperForge Consistency Audit - entry: python scripts/consistency_audit.py - language: system - pass_filenames: false