From 3c949333bda7d728114e96cdc863415896fd6d6b Mon Sep 17 00:00:00 2001 From: Andrei Buzera Date: Mon, 26 Oct 2026 22:35:19 +0200 Subject: [PATCH] Stop tracking macOS .DS_Store files Finder metadata was tracked at the repository root and nearly got packaged inside the integration. Ignore .DS_Store everywhere, untrack the root copy (the local file stays) and make the package check reject it under custom_components. Co-Authored-By: Claude Opus 5.5 --- .DS_Store | Bin 6148 -> 0 bytes .gitignore | 1 + scripts/validate_package.py | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 153f549af5752777589bd9a394d9f36d23853d89..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKyG{c!5S)b+k!V6k>0jUvPEq&*J|GbZUEq)|>95Ln@oCIHn$tlQ(L}S-dhGR% zEl+WK3&7Ur!!xh~u%tWU;=|m0-+g9x6)_^6XY}~M7W=?i`mX`!K9X_9fYXHk#nmU? z=_d?_VSjw<`=h7Jq<|EV0#ZN(CCg`;g}eo4i3=* z5El%GaUQ({v3Y>l6^@CF&@8FMq*}EYmUPBj<#mN)V$xyNd|2IV)uCA2&huNO!@5L` zQa}n!6}Zpk%Ip6N{g3{CO43RSNP(MDz!sa=&6-cD+B$oj*V;zk(LLvz?#6jgI7B%n jMmgrf%kfhrWnS|+_q)O|G3bm3ov5Dy*F`1;{#$_`CL0*6 diff --git a/.gitignore b/.gitignore index 4bb2a84..c534ab5 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ __pycache__/ .coverage htmlcov/ .venv/ +.DS_Store diff --git a/scripts/validate_package.py b/scripts/validate_package.py index a5c3217..30e7fb3 100644 --- a/scripts/validate_package.py +++ b/scripts/validate_package.py @@ -36,5 +36,5 @@ for name, size in (("icon.png", 256), ("icon@2x.png", 512), assert (width, height) == (size, size), f"{name} is {width}x{height}, expected {size}x{size}" assert color_type == 6, f"{name} needs an alpha channel" tracked = subprocess.check_output(["git", "ls-files", "custom_components"], cwd=root, text=True).splitlines() -assert not any("__pycache__" in path or path.endswith((".pyc", ".pyo")) for path in tracked) +assert not any("__pycache__" in path or path.endswith((".pyc", ".pyo", ".DS_Store")) for path in tracked) print("Package metadata, translations, brand icons and tracked component files passed")