From 72f5985f8980b2de2db2b6da5a583fa2ed3c5edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sp=C3=A1=C4=8Dil?= Date: Fri, 2 Oct 2026 11:14:54 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20p=C5=99idat=20.editorconfig=20a=20.git?= =?UTF-8?q?attributes=20(#76)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - .editorconfig: UTF-8 bez BOM, LF, koncový nový řádek; výjimka pro heslar.csv (BOM + CRLF, zapisuje ho plugin) - .gitattributes: text=auto eol=lf, heslar.csv -text, PNG/ZIP binary Renormalizace neměnila žádný sledovaný soubor (ověřeno v kopii repa). Vzor z aiscr-management (quality_baseline/foundations). Připraveno s pomocí AI (Claude), ručně zkontrolováno. --- .editorconfig | 24 ++++++++++++++++++++++++ .gitattributes | 10 ++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f941f5f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,24 @@ +# Jednotné kódování a konce řádků napříč editory. +# Vzor: aiscr-management (quality_baseline/foundations/editorconfig.ini) +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +# Zdrojáky bez BOM – pyqgis4-checker na BOM spadne (viz AGENTS.md) +[*.py] +indent_style = space +indent_size = 4 + +[*.md] +trim_trailing_whitespace = false + +# Heslář zapisuje plugin s BOM a CRLF (kvůli Excelu) – needitovat ručně +[amcr_viewer/codelists/heslar.csv] +charset = utf-8-bom +end_of_line = crlf +insert_final_newline = unset +trim_trailing_whitespace = unset diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..30ca8a4 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,10 @@ +# Textové soubory v repozitáři s LF; vzor: aiscr-management +# (quality_baseline/foundations/gitattributes.fragment) +* text=auto eol=lf + +# Heslář generuje plugin (BOM + CRLF kvůli Excelu) – ukládat bajt po bajtu +amcr_viewer/codelists/heslar.csv -text + +# Binární soubory +*.png binary +*.zip binary