From baf6244127115d189d8614011c066e01fd9a2b4a Mon Sep 17 00:00:00 2001 From: jiaxi <1761475917@qq.com> Date: Fri, 25 Sep 2026 18:37:06 +0800 Subject: [PATCH] fix(copywrite): ignore runs/ training artifacts in header scan The add-headers hook runs with pass_filenames=false, so copywrite recursively scans the whole working directory and never reads .gitignore. With multi-GB checkpoints under runs/ it reads every artifact into memory and gets OOM-killed (17-20 GiB RSS reported). Add runs/** to project.header_ignore so the hook skips training outputs entirely. Fixes #79 --- .copywrite.hcl | 1 + 1 file changed, 1 insertion(+) diff --git a/.copywrite.hcl b/.copywrite.hcl index 9d14311b..b9ae5028 100644 --- a/.copywrite.hcl +++ b/.copywrite.hcl @@ -8,6 +8,7 @@ project { header_ignore = [ ".venv/**", + "runs/**", "**/*.xml", "**/*.yaml", "**/*.yml",