From 769e821f27c560473c321fefe971aada45309d0b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 19:33:59 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v6.0.0) - [github.com/pre-commit/mirrors-clang-format: v15.0.6 → v22.1.5](https://github.com/pre-commit/mirrors-clang-format/compare/v15.0.6...v22.1.5) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 22.12.0 → 26.5.1](https://github.com/psf/black-pre-commit-mirror/compare/22.12.0...26.5.1) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 From 34e314b91f3b9c725b686f748b54c22bff501530 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 19:35:05 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tsp/inc/trackMinimization.h | 9 +++------ tsp/inc/tsp.h | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) 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