Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -17,7 +17,7 @@ repos:
exclude: external/.*$

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v15.0.6
rev: v21.1.5
hooks:
- id: clang-format
exclude: external/.*$
Expand All @@ -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: 25.11.0
hooks:
- id: black
2 changes: 1 addition & 1 deletion inc/TRestDetectorHitsReadoutAnalysisProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion inc/TRestDetectorLightAttenuationProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"; }

Expand Down
6 changes: 2 additions & 4 deletions src/TRestDetectorSignalViewerProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -135,8 +134,7 @@ TRestEvent* TRestDetectorSignalViewerProcess::ProcessEvent(TRestEvent* inputEven
RESTWarning << "cannot plot signal with id " << sgnCounter << RESTendl;
}
}
while (getchar() != '\n')
;
while (getchar() != '\n');
}
}

Expand Down