chore(standard): radslut, editorconfig och .gitignore-täckning (REPO-11, REPO-12, REPO-13)

- REPO-11: .gitattributes ur siax-templates templates/*/.gitattributes
  (samma fil i alla mallar), utan raderna för package-lock.json och
  pnpm-lock.yaml som repot inte har. Alla spårade filer är redan LF;
  git add --renormalize gav ingen diff.
- REPO-12: .gitignore kompletterad med node_modules/, dist/, .env och
  .env.* (utom .env.example), testtäckning, *.log och OS-skräp, med
  mönster ur Python-mallarna. watch/ ignoreras också: app/config.py
  skapar katalogen vid start och den innehåller användarens egna länkar.
  Ingen spårad fil blir ignorerad (git ls-files -ci --exclude-standard
  är tom).
- REPO-13: .editorconfig ur mallen, med [*.py] indent_size = 4 eftersom
  koden i app/ är indenterad med 4 blanksteg.

DOC-07 är orörd. Ingen återställning har gjorts, så inget datum har
lagts in i docs/runbook/backup-restore.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-11 02:33:44 +01:00
co-authored by Claude Opus 5.5
parent 4edd25498e
commit 159182b7f6
3 changed files with 66 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# REPO-13
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
# Python-koden i app/ är indenterad med 4 blanksteg (PEP 8).
[*.py]
indent_size = 4
[*.md]
trim_trailing_whitespace = false
[Makefile]
indent_style = tab
+12
View File
@@ -0,0 +1,12 @@
# REPO-11 — normalised line endings, so a Windows checkout cannot flip
# every file in a diff. LF in the repository, native in the working tree.
* text=auto eol=lf
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.pdf binary
*.woff binary
*.woff2 binary
+34
View File
@@ -2,3 +2,37 @@
__pycache__/
*.pyc
data/
# REPO-12 — täckning enligt standarden, mönster ur siax-templates
# (Python-mallarna streamlit-data-app och data-science-notebook).
# Python-bygg och verktygscache
venv/
*.egg-info/
build/
dist/
.pytest_cache/
.ruff_cache/
# Testtäckning
.coverage
coverage/
htmlcov/
coverage.xml
# Länkar som läggs i watch/ (app/config.py: VV_WATCH, default ./watch).
# Katalogen skapas när appen startar och innehåller användarens egna länkar.
watch/
# Hemligheter. README beskriver konfigurationen i .env, och docker compose
# läser MEILI_KEY därifrån. Bara .env.example får committas.
.env
.env.*
!.env.example
# Node-verktyg, loggar och OS-skräp
node_modules/
.turbo/
*.log
.DS_Store
Thumbs.db