diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 87c5b7f..1ce8d4d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -17,7 +17,7 @@ repos: exclude: external/.*$ - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v15.0.6 + rev: v22.1.5 hooks: - id: clang-format exclude: external/.*$ @@ -29,7 +29,7 @@ repos: additional_dependencies: [ pyyaml ] # - id: cmake-lint - - repo: https://github.com/psf/black - rev: 22.12.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.5.1 hooks: - id: black diff --git a/tsp/inc/trackMinimization.h b/tsp/inc/trackMinimization.h index ef68b0e..2291432 100644 --- a/tsp/inc/trackMinimization.h +++ b/tsp/inc/trackMinimization.h @@ -10,17 +10,14 @@ #ifdef __cplusplus extern "C" #endif - int - TrackMinimization_2D(int* xIn, int* yIn, int ncount, int* mytour); + int TrackMinimization_2D(int* xIn, int* yIn, int ncount, int* mytour); #ifdef __cplusplus extern "C" #endif - int - TrackMinimization_segment(int ncount, int* elen, int* mytour); + int TrackMinimization_segment(int ncount, int* elen, int* mytour); #ifdef __cplusplus extern "C" #endif - int - TrackMinimization_3D(int* xIn, int* yIn, int* zIn, int ncount, int* mytour); + int TrackMinimization_3D(int* xIn, int* yIn, int* zIn, int ncount, int* mytour); diff --git a/tsp/inc/tsp.h b/tsp/inc/tsp.h index df63f58..7f31bad 100644 --- a/tsp/inc/tsp.h +++ b/tsp/inc/tsp.h @@ -258,7 +258,7 @@ typedef struct CCtsp_branchobj { } CCtsp_branchobj; typedef struct CCtsp_cutnode { -#define CCtsp_CUT_INNODELIST(t) ((t)&4) +#define CCtsp_CUT_INNODELIST(t) ((t) & 4) #define CCtsp_CUT_ROOT 0 #define CCtsp_CUT_PNODE 1 #define CCtsp_CUT_QNODE 2