From e863530608a4abf888322b48af005294e3e18de4 Mon Sep 17 00:00:00 2001 From: Research Assistant Date: Sun, 10 May 2026 12:04:12 +0800 Subject: [PATCH] chore: add PR template + pre-commit config (ruff auto-format) --- .github/PULL_REQUEST_TEMPLATE.md | 9 +++++++++ .pre-commit-config.yaml | 21 ++++----------------- 2 files changed, 13 insertions(+), 17 deletions(-) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md 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