mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
- Add [tool.ruff] section to pyproject.toml (target-version py310, rules E/F/I/UP/B/SIM) - Create .pre-commit-config.yaml with 7 hooks (ruff lint+format, check-yaml, check-toml, end-of-file-fixer, trailing-whitespace, consistency-audit) - Add Check 5 (check_duplicate_utils) to scripts/consistency_audit.py - Add library_record field to OCR error meta.json (4 error paths in ocr.py)
23 lines
552 B
YAML
23 lines
552 B
YAML
repos:
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.4.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
|