From 71b3e82f3f02f4830f873b8deb02f65a5467ce16 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 28 Mar 2024 05:11:10 +0000 Subject: [PATCH] style: pre-commit fixes --- CMakeLists.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e57ac23e..4ed0ccd7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -181,14 +181,10 @@ else() pybind11_find_import(setuptools_scm REQUIRED) execute_process( - COMMAND - ${Python_EXECUTABLE} -c - "from setuptools_scm import get_version; print(get_version())" + COMMAND ${Python_EXECUTABLE} -c "from setuptools_scm import get_version; print(get_version())" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" OUTPUT_VARIABLE VERSION_FULL_STRING - OUTPUT_STRIP_TRAILING_WHITESPACE - COMMAND_ERROR_IS_FATAL ANY - ) + OUTPUT_STRIP_TRAILING_WHITESPACE COMMAND_ERROR_IS_FATAL ANY) string(REGEX MATCH [=[^[0-9]+\.[0-9]+\.[0-9]+]=] VERSION_STRING "${VERSION_FULL_STRING}") string(REPLACE "-" "." VERSION_STRING "${VERSION_STRING}")