chore: engineering workflow (lint, CITATION, coverage) — no science changes#1
Open
boyam01 wants to merge 2 commits into
Open
chore: engineering workflow (lint, CITATION, coverage) — no science changes#1boyam01 wants to merge 2 commits into
boyam01 wants to merge 2 commits into
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
工程工作流補強(純工程,未改動任何科學/邏輯)
把 repo 的工程外殼補到業界水準,方法論與判決邏輯完全未動。
加了什麼
[tool.ruff](line-length 100、E/W/F/I)+.pre-commit-config.yaml(ruff + ruff-format)ci.yml新增lintjob(ruff check+ruff format --check);既有 jobs 未動pytest-cov+[tool.coverage](fail_under=70,實測 90%);--cov刻意不入全域 addopts,讓既有 CI pytest job 維持綠ruff format+ 安全 autofix(import 排序、移除未用 import/空 f-string)跨 43 檔;tasks/ demo/ traces/的實驗 fixtures 排除未動本機驗證(已實跑)
ruff check .→ All checks passedruff format --check .→ 46 files already formattedpytest→ 201 passed(與改動前基線相同,未弄壞任何測試)科學內容、判決路徑、API 皆未更動。