Skip to content

Commit 0e1b45f

Browse files
[pre-commit.ci] pre-commit autoupdate (#181)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/mirrors-clang-format: v22.1.8 → v23.1.0](pre-commit/mirrors-clang-format@v22.1.8...v23.1.0) - [github.com/astral-sh/ruff-pre-commit: v0.16.2 → v0.16.6](astral-sh/ruff-pre-commit@v0.16.2...v0.16.6) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix formatting * Pin lcov < 2 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ian Thomas <ianthomas23@gmail.com>
1 parent 580c7e2 commit 0e1b45f

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
with:
6868
environment-file: dev-environment.yml
6969
cache-environment: true
70-
create-args: lcov
70+
create-args: lcov<2
7171

7272
- name: Configure CMake
7373
run: |

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ repos:
1717
args: ['--py312-plus']
1818

1919
- repo: https://github.com/pre-commit/mirrors-clang-format
20-
rev: v22.1.8
20+
rev: v23.1.0
2121
hooks:
2222
- id: clang-format
2323
args: [--style=file]
2424
exclude_types: [javascript,json]
2525

2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.16.2
27+
rev: v0.16.6
2828
hooks:
2929
- id: ruff-check
3030
args: [--fix]

src/utils/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const std::map<git_status_t, status_messages>& get_status_msg_map()
5151
{GIT_STATUS_WT_UNREADABLE, {"", ""}},
5252
{GIT_STATUS_IGNORED, {"!! ", ""}},
5353
{GIT_STATUS_CONFLICTED, {"AA ", "\tboth added: "}},
54-
};
54+
};
5555
return status_msg_map;
5656
}
5757

src/utils/common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct status_messages
3838

3939
status_messages get_status_msg(git_status_t);
4040

41-
using stream_colour_fn = std::ostream& (*) (std::ostream&);
41+
using stream_colour_fn = std::ostream& (*)(std::ostream&);
4242

4343
std::string read_file(const std::string& path);
4444

src/wasm/stream.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ EM_JS(
106106
}
107107
catch (err)
108108
{
109-
// Store error for later retrieval
110109
// clang-format off
110+
// Store error for later retrieval
111111
Module["git2cpp_js_error"] = { name: err.name ?? "", message : err.message ?? "" };
112112
// clang-format on
113113
(err.name == "TimeoutError" ? console.warn : console.error)(err);
@@ -193,8 +193,8 @@ EM_JS(
193193

194194
if (first_read)
195195
{
196-
// Caller must delete the returned status_text and response_headers.
197196
// clang-format off
197+
// Caller must delete the returned status_text and response_headers.
198198
setValue(status, xhr.status, 'i32*');
199199
setValue(status_text, stringToNewUTF8(xhr.statusText ?? ""), 'i8**');
200200
setValue(total_bytes, byte_length, 'i64*');
@@ -212,8 +212,8 @@ EM_JS(
212212
}
213213
catch (err)
214214
{
215-
// Store error for later retrieval
216215
// clang-format off
216+
// Store error for later retrieval
217217
Module["git2cpp_js_error"] = { name: err.name ?? "", message : err.message ?? "" };
218218
// clang-format on
219219
(err.name == "TimeoutError" ? console.warn : console.error)(err);

0 commit comments

Comments
 (0)