Skip to content

chore: add .gitattributes to normalize line endings - #1

Merged
1morr merged 1 commit into
mainfrom
chore/repo-hygiene
Sep 16, 2026
Merged

1morr merged 1 commit into
mainfrom
chore/repo-hygiene

Conversation

@1morr

@1morr 1morr commented Sep 16, 2026

Copy link
Copy Markdown
Owner

套用 repo-hygiene skill 的分級清單,先量再加。量下來這個 repo 只有 .gitattributes 這一項成立,所以本 PR 只有這一個檔案。

觸發條件:在 Windows 上開發 —— 成立。

先量的結果:

  • git add --renormalize . → 零 diff(除了新增的 .gitattributes 本身)。
  • 追蹤中的 133 個文字 blob,0 個含 CR。

純保險,不是修正:防的是未來在沒有 core.autocrlf=true 的機器上 clone。沒有任何既有檔案被重新正規化。

同一輪量出來、但這個 PR 刻意不做的

  • backend CI 沒有 lint/format 關卡(ci.yml 的 backend job 只有 pytest -q,frontend job 有 tsc --noEmit + eslint;pyproject.toml 的 dev extras 裡也沒有 ruff/black)。monorepo 兩半標準不一致,這條成立,但加 linter 會動到程式碼風格,超出本次範圍。
  • dependabot(有 frontend/package-lock.json 與 GitHub Actions,成立)。
  • docs/ 只有 images/、零 .md,所以 docs/README.md 地圖不成立;零 tag 零 release,所以版本一致性測試沒有漂移對象(pyproject.toml 0.1.0 與 frontend/package.json 0.0.0 目前對不上任何東西);零外部 issue/PR,所以 ISSUE_TEMPLATE 與 AI 貢獻政策都不成立。

Measured before committing: `git add --renormalize .` is a zero diff and
no tracked blob contains a CR, so this is insurance against a checkout on
a machine without core.autocrlf, not a correction.
@1morr
1morr merged commit 682ae62 into main Sep 16, 2026
2 checks passed
@1morr
1morr deleted the chore/repo-hygiene branch September 16, 2026 02:42
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