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 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'); } }