From 159182b7f6de645afa07f6f340a0961e557f4ffd Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 11 Nov 2026 02:33:44 +0100 Subject: [PATCH] =?UTF-8?q?chore(standard):=20radslut,=20editorconfig=20oc?= =?UTF-8?q?h=20.gitignore-t=C3=A4ckning=20(REPO-11,=20REPO-12,=20REPO-13)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .editorconfig | 20 ++++++++++++++++++++ .gitattributes | 12 ++++++++++++ .gitignore | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..21cccc6 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..24321be --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore index c8ce53e..579184f 100644 --- a/.gitignore +++ b/.gitignore @@ -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