Skip to content

Commit 7e068dc

Browse files
authored
Merge pull request #113 from yt-project/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 1ec106a + 1f52644 commit 7e068dc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ci:
1212

1313
repos:
1414
- repo: https://github.com/pre-commit/mirrors-clang-format
15-
rev: v18.1.8
15+
rev: v19.1.7
1616
hooks:
1717
- id: clang-format
1818
types_or: ['c++', 'c']

src/init_python.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ int init_python(int argc, char* argv[]) {
6060
else
6161
YT_ABORT("Adding search path for modules ... failed!\n");
6262

63-
// set up yt config
64-
// (sys._parallel = True --> run yt in parallel )
65-
// (sys._interactive_mode = True --> mpi does not abort when there is error)
63+
// set up yt config
64+
// (sys._parallel = True --> run yt in parallel )
65+
// (sys._interactive_mode = True --> mpi does not abort when there is error)
6666
#if defined(INTERACTIVE_MODE) || defined(JUPYTER_KERNEL)
6767
if (PyRun_SimpleString("sys._parallel = True; sys._interactive_mode = True") == 0)
6868
#else

src/yt_run_ReloadScript.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ int yt_run_ReloadScript(const char* flag_file_name, const char* reload_file_name
316316
// Return : true/false
317317
//-------------------------------------------------------------------------------------------------------
318318
static bool detect_file(const char* flag_file) {
319-
struct stat buffer {};
319+
struct stat buffer{};
320320
if (stat(flag_file, &buffer) != 0) {
321321
return false;
322322
} else {

0 commit comments

Comments
 (0)