Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #375

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
6 changes: 3 additions & 3 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: v5.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: v19.1.7
hooks:
- id: clang-format
exclude: external/.*$
Expand All @@ -30,6 +30,6 @@ repos:
# - id: cmake-lint

- repo: https://github.com/psf/black
rev: 22.12.0
rev: 24.10.0
hooks:
- id: black
56 changes: 28 additions & 28 deletions macros/REST_CreateHisto.C
Original file line number Diff line number Diff line change
Expand Up @@ -63,33 +63,33 @@ Int_t REST_CreateHisto(string varName, string rootFileName, TString histoName, i
return 0;
};

//
// class REST_CreateHisto :public TRestTask {
// public:
// ClassDef(REST_CreateHisto, 1);
//
// REST_CreateHisto() { fNRequiredArgument = 3; }
// ~REST_CreateHisto() {}
//
// TString varName="";
// TString rootFileName="";
// TString histoName="";
// int startVal = 0;
// int endVal = 1000;
// int bins = 1000;
// Double_t normFactor = 1;
//
// void RunTask(TRestManager*mgr)
// {
// REST_CreateHisto(varName,
// rootFileName,
// histoName,
// startVal,
// endVal,
// bins,
// normFactor);
// }
//
//};
//
// class REST_CreateHisto :public TRestTask {
// public:
// ClassDef(REST_CreateHisto, 1);
//
// REST_CreateHisto() { fNRequiredArgument = 3; }
// ~REST_CreateHisto() {}
//
// TString varName="";
// TString rootFileName="";
// TString histoName="";
// int startVal = 0;
// int endVal = 1000;
// int bins = 1000;
// Double_t normFactor = 1;
//
// void RunTask(TRestManager*mgr)
// {
// REST_CreateHisto(varName,
// rootFileName,
// histoName,
// startVal,
// endVal,
// bins,
// normFactor);
// }
//
//};

#endif
6 changes: 3 additions & 3 deletions scripts/installAllTags.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

# You might need to add some environment definitions needed to build REST
os.environ["GARFIELD_HOME"] = "/programas/garfield"
os.environ[
"LD_LIBRARY_PATH"
] = "/programas/root34.32/root/lib:/programas/geant4.10.02.p02-install/lib::/programas/garfield/lib"
os.environ["LD_LIBRARY_PATH"] = (
"/programas/root34.32/root/lib:/programas/geant4.10.02.p02-install/lib::/programas/garfield/lib"
)
os.environ["PATH"] = os.environ["PATH"] + ":/programas/root34.32/root/bin/"
# ===================================================

Expand Down
4 changes: 2 additions & 2 deletions source/framework/analysis/inc/TRestDataSetGainMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,12 @@ class TRestDataSetGainMap : public TRestMetadata {
void Initialize();

Module() {}
Module(const TRestDataSetGainMap& parent) : p(&parent){};
Module(const TRestDataSetGainMap& parent) : p(&parent) {};
Module(const TRestDataSetGainMap& parent, const Int_t planeId, const Int_t moduleId) : p(&parent) {
SetPlaneId(planeId);
SetModuleId(moduleId);
};
~Module(){};
~Module() {};
};
};
#endif
2 changes: 1 addition & 1 deletion source/framework/core/inc/TRestTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class TRestTask : public TRestMetadata {

// Constructor & Destructor
TRestTask();
~TRestTask(){};
~TRestTask() {};

ClassDefOverride(TRestTask, 1);
};
Expand Down
2 changes: 1 addition & 1 deletion source/framework/core/inc/TRestThread.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class TRestThread {

// Constructor & Destructor
TRestThread() { Initialize(); }
~TRestThread(){};
~TRestThread() {};
};

#endif
6 changes: 2 additions & 4 deletions source/framework/core/src/TRestProcessRunner.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,7 @@ void TRestProcessRunner::RunProcess() {
}

if (fProcStatus != kIgnore && Console::kbhit())
while (getchar() != '\n')
; // clear buffer
while (getchar() != '\n'); // clear buffer

RESTEssential << "Waiting for processes to finish ..." << RESTendl;

Expand Down Expand Up @@ -592,8 +591,7 @@ void TRestProcessRunner::PauseMenu() {
Console::CursorUp(1);
int c = Console::Read();
if (c != '\n')
while (Console::Read() != '\n')
;
while (Console::Read() != '\n');
TRestStringOutput::REST_Verbose_Level l;
if (c == '0' || c == 's') {
l = TRestStringOutput::REST_Verbose_Level::REST_Silent;
Expand Down
2 changes: 1 addition & 1 deletion source/framework/tools/inc/TRestTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ inline void SetInitLevel(T* name, int level) {
enum Quantities { ENERGY, LENGTH, TIME };
class ValueWithQuantity {
public:
ValueWithQuantity(double value, Quantities quantity) : fValue(value), fQuantity(quantity){};
ValueWithQuantity(double value, Quantities quantity) : fValue(value), fQuantity(quantity) {};
double GetValue() const { return fValue; }
std::string ToString() const;

Expand Down
Loading