From e2ab6ff288a02686e2eddd84fb0e00906eec2c15 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 17 Mar 2025 18:51:12 +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 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v5.0.0) - [github.com/pre-commit/mirrors-clang-format: v15.0.6 → v20.1.0](https://github.com/pre-commit/mirrors-clang-format/compare/v15.0.6...v20.1.0) - [github.com/psf/black: 22.12.0 → 25.1.0](https://github.com/psf/black/compare/22.12.0...25.1.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 87c5b7f6..c489b38a 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: v5.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: v20.1.0 hooks: - id: clang-format exclude: external/.*$ @@ -30,6 +30,6 @@ repos: # - id: cmake-lint - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 25.1.0 hooks: - id: black From f51f682a2f992694e33085c752120f18e1b9b645 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 17 Mar 2025 18:51:42 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- inc/TRestDetectorHitsReadoutAnalysisProcess.h | 2 +- inc/TRestDetectorLightAttenuationProcess.h | 2 +- src/TRestDetectorSignalViewerProcess.cxx | 6 ++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/inc/TRestDetectorHitsReadoutAnalysisProcess.h b/inc/TRestDetectorHitsReadoutAnalysisProcess.h index 2f994a6d..c2ee50af 100644 --- a/inc/TRestDetectorHitsReadoutAnalysisProcess.h +++ b/inc/TRestDetectorHitsReadoutAnalysisProcess.h @@ -22,7 +22,7 @@ class TRestDetectorHitsReadoutAnalysisProcess : public TRestEventProcess { void InitFromConfigFile() override; void Initialize() override; - void LoadDefaultConfig(){}; + void LoadDefaultConfig() {}; /// \brief This process will only work on hits corresponding to this channel type (using readout) std::string fChannelType; diff --git a/inc/TRestDetectorLightAttenuationProcess.h b/inc/TRestDetectorLightAttenuationProcess.h index 7db7f32c..bba9436f 100644 --- a/inc/TRestDetectorLightAttenuationProcess.h +++ b/inc/TRestDetectorLightAttenuationProcess.h @@ -41,7 +41,7 @@ class TRestDetectorLightAttenuationProcess : public TRestEventProcess { void PrintMetadata() override; TRestDetectorLightAttenuationProcess() = default; - explicit TRestDetectorLightAttenuationProcess(const char* configFilename){}; + explicit TRestDetectorLightAttenuationProcess(const char* configFilename) {}; const char* GetProcessName() const override { return "lightAttenuation"; } diff --git a/src/TRestDetectorSignalViewerProcess.cxx b/src/TRestDetectorSignalViewerProcess.cxx index 3e47d28e..7b7c70ae 100644 --- a/src/TRestDetectorSignalViewerProcess.cxx +++ b/src/TRestDetectorSignalViewerProcess.cxx @@ -109,8 +109,7 @@ TRestEvent* TRestDetectorSignalViewerProcess::ProcessEvent(TRestEvent* inputEven } else if (a == 27) // esc { fDrawRefresh = 1e99; - while (getchar() != '\n') - ; + while (getchar() != '\n'); break; } else if (a == 110 || a == 78) // n { @@ -135,8 +134,7 @@ TRestEvent* TRestDetectorSignalViewerProcess::ProcessEvent(TRestEvent* inputEven RESTWarning << "cannot plot signal with id " << sgnCounter << RESTendl; } } - while (getchar() != '\n') - ; + while (getchar() != '\n'); } }