fix(ci): add tool cache directories to check-unicode-safety ignore list

Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>
This commit is contained in:
aoright
2026-08-24 22:27:39 -03:00
committed by Alex Schmitt
parent 1ac9fd69f6
commit 4d8893f607
2 changed files with 22 additions and 0 deletions
+4
View File
@@ -15,6 +15,10 @@ const ignoredDirs = new Set([
'.dmux',
'.next',
'.venv',
'.pytest_cache',
'.ruff_cache',
'.turbo',
'.cache',
'coverage',
'venv',
]);
@@ -198,6 +198,24 @@ if (
passed++;
else failed++;
if (
test('skips tool cache directories (.pytest_cache, .ruff_cache, .turbo, .cache)', () => {
const root = makeTempRoot('ecc-unicode-cache-');
for (const cacheDir of ['.pytest_cache', '.ruff_cache', '.turbo', '.cache']) {
fs.mkdirSync(path.join(root, cacheDir), { recursive: true });
fs.writeFileSync(
path.join(root, cacheDir, 'cache-data.json'),
`{"cached": "${rocketEmoji}"}\n`
);
}
const result = runCheck(root);
assert.strictEqual(result.status, 0, result.stdout + result.stderr);
})
)
passed++;
else failed++;
console.log(`\nPassed: ${passed}`);
console.log(`Failed: ${failed}`);
process.exit(failed > 0 ? 1 : 0);