mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
chore: add PR template + pre-commit config (ruff auto-format)
This commit is contained in:
parent
ba52fd1735
commit
e863530608
2 changed files with 13 additions and 17 deletions
9
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
9
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
## Summary
|
||||
<!-- Briefly describe what this PR does -->
|
||||
|
||||
## 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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue