Skip to content

Commit 5f2cf8a

Browse files
committed
Adjust makefile to exclude lib directory for formating
1 parent fc42ffb commit 5f2cf8a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,8 @@ clean-cppad:
170170
rm -rf cppad_code_gen
171171

172172
format:
173-
find humanoid_nmpc/ -name "*.cpp" -o -name "*.h" -o -name "*.hpp" | xargs clang-format -i && \
174-
black humanoid_nmpc/ robot_models/
175-
176-
validate-format:
177-
lib/halodi-ros2-code-quality/Tools/check_code_style.sh robot_models humanoid_nmpc
178-
173+
find . -name "lib" -prune -o \( -name "*.cpp" -o -name "*.h" -o -name "*.hpp" \) -print | xargs clang-format -i && \
174+
black . --exclude="lib/"
179175

180176
launch-g1-dummy-sim:
181177
cd ${build_dir} && \

0 commit comments

Comments
 (0)