Skip to content

chore: engineering workflow (lint, CITATION, coverage) — no science changes#1

Open
boyam01 wants to merge 2 commits into
mainfrom
chore/engineering-workflow
Open

chore: engineering workflow (lint, CITATION, coverage) — no science changes#1
boyam01 wants to merge 2 commits into
mainfrom
chore/engineering-workflow

Conversation

@boyam01

@boyam01 boyam01 commented Jul 4, 2026

Copy link
Copy Markdown
Owner

工程工作流補強(純工程,未改動任何科學/邏輯)

把 repo 的工程外殼補到業界水準,方法論與判決邏輯完全未動

加了什麼

  • Lint[tool.ruff](line-length 100、E/W/F/I)+ .pre-commit-config.yaml(ruff + ruff-format)
  • CIci.yml 新增 lint job(ruff check + ruff format --check);既有 jobs 未動
  • CITATION.cff(schema 1.2.0)——發表方法論工具的臨門一腳
  • 覆蓋率pytest-cov + [tool.coverage]fail_under=70,實測 90%);--cov 刻意不入全域 addopts,讓既有 CI pytest job 維持綠
  • dev 依賴釘版
  • style commitruff format + 安全 autofix(import 排序、移除未用 import/空 f-string)跨 43 檔;tasks/ demo/ traces/ 的實驗 fixtures 排除未動

本機驗證(已實跑)

  • ruff check . → All checks passed
  • ruff format --check . → 46 files already formatted
  • pytest201 passed(與改動前基線相同,未弄壞任何測試)

科學內容、判決路徑、API 皆未更動。

boyam01 and others added 2 commits July 5, 2026 06:37
- pyproject: [tool.ruff] (line-length 100, select E/W/F/I, ignore E501),
  fixtures under tasks/demo/traces excluded from lint/format
- pyproject: pin dev deps, add pytest-cov + [tool.coverage] (opt-in, fail_under 70)
- .pre-commit-config.yaml: ruff + ruff-format hooks
- CITATION.cff: schema 1.2.0, metadata from README/LICENSE
- CI: new 'lint' job (ruff check + ruff format --check); existing jobs untouched

No science/logic changes; engineering shell only.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Pure formatting plus safe autofixes (import sorting, unused-import removal,
empty f-string fixes) from ruff over probity/, scripts/, agents/, tests/.
Scientific fixtures under tasks/, demo/, and traces/ are excluded. No
science/logic behaviour changed; full test suite stays at 201 passed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant