From 998d2e9a694cc3a276ac8e8a30916184fd788579 Mon Sep 17 00:00:00 2001 From: Grecia Salazar Estrada Date: Tue, 17 Nov 2026 10:15:21 -0800 Subject: [PATCH] fix(cmake): exclude every venv from the clang-format check The clang-format check globs all C/C++ files under src/ and examples/ and only skipped folders named exactly venv/ or .venv/. A venv with any other name (e.g. examples/camera_viz/.venv-py312) had its third-party headers scanned, which reported thousands of "code should be clang-formatted" errors and failed the source build on Linux, where the check is ON by default. Widen the .venv pattern to .?venv[^/]* so venv, .venv, .venv-py312, .venv-skbuild and similar are all excluded. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Grecia Salazar Estrada --- cmake/ClangFormat.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/ClangFormat.cmake b/cmake/ClangFormat.cmake index b0500093e1..7150bd8b6f 100644 --- a/cmake/ClangFormat.cmake +++ b/cmake/ClangFormat.cmake @@ -43,7 +43,7 @@ set(_cf_exclude_patterns ".*/node_modules/.*" ".*/third_party/.*" ".*/venv/.*" - ".*/\\.venv/.*" + ".*/\\.?venv[^/]*/.*" ".*/__pycache__/.*" )