We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a46778a commit 2df27d7Copy full SHA for 2df27d7
CMakeLists.txt
@@ -231,3 +231,14 @@ add_custom_target(clang-format
231
DEPENDS ${CLANG_FORMAT_TARGETS}
232
VERBATIM
233
)
234
+
235
+add_custom_target(autopep8 ${CMAKE_SOURCE_DIR}/tools/autopep8.sh ${CMAKE_SOURCE_DIR}
236
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
237
+ COMMENT "formatting python files"
238
+ VERBATIM
239
+ )
240
241
+if(NOT EXISTS ${CMAKE_SOURCE_DIR}/.git/hooks/pre-commit)
242
+ message("Installing github hook")
243
+ configure_file(${CMAKE_SOURCE_DIR}/tools/git/pre-commit ${CMAKE_SOURCE_DIR}/.git/hooks/pre-commit COPYONLY)
244
+endif()
0 commit comments