Skip to content

Commit 22c7026

Browse files
[pre-commit.ci] pre-commit autoupdate (#84)
<!--pre-commit.ci start--> updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](pre-commit/pre-commit-hooks@v5.0.0...v6.0.0) - [github.com/psf/black-pre-commit-mirror: 24.10.0 → 25.1.0](psf/black-pre-commit-mirror@24.10.0...25.1.0) - [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.12.12](astral-sh/ruff-pre-commit@v0.7.2...v0.12.12) - [github.com/pre-commit/mirrors-clang-format: v19.1.3 → v21.1.0](pre-commit/mirrors-clang-format@v19.1.3...v21.1.0) - [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.17.1](pre-commit/mirrors-mypy@v1.13.0...v1.17.1) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d930733 commit 22c7026

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
repos:
1616
# Standard hooks
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
18-
rev: v5.0.0
18+
rev: v6.0.0
1919
hooks:
2020
- id: check-case-conflict
2121
- id: check-docstring-first
@@ -35,20 +35,20 @@ repos:
3535

3636
# Python formatting
3737
- repo: https://github.com/psf/black-pre-commit-mirror
38-
rev: 24.10.0
38+
rev: 25.1.0
3939
hooks:
4040
- id: black
4141

4242
# Ruff linter, replacement for flake8, pydocstyle, isort
4343
- repo: https://github.com/astral-sh/ruff-pre-commit
44-
rev: 'v0.7.2'
44+
rev: 'v0.12.12'
4545
hooks:
4646
- id: ruff
4747
args: [--fix, --show-fixes]
4848

4949
# C++ formatting
5050
- repo: https://github.com/pre-commit/mirrors-clang-format
51-
rev: v19.1.3
51+
rev: v21.1.0
5252
hooks:
5353
- id: clang-format
5454

@@ -63,7 +63,7 @@ repos:
6363

6464
# Python type checking
6565
- repo: https://github.com/pre-commit/mirrors-mypy
66-
rev: 'v1.13.0'
66+
rev: 'v1.17.1'
6767
hooks:
6868
- id: mypy
6969
# additional_dependencies: [numpy]

src/io.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void register_io(py::module& m) {
7070
.def(py::init<>())
7171
.def(py::init<std::string>())
7272
.def("__str__",
73-
(std::string(std::stringstream::*)() const)&std::stringstream::str);
73+
(std::string (std::stringstream::*)() const) & std::stringstream::str);
7474

7575
py::class_<Reader>(m, "Reader")
7676
// clang-format off

src/pybind.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ _T overload_cast(_T x) {
3737
DOC(cls.name))
3838
#define METH(name, cls, ...) .def(#name, &cls::name, ##__VA_ARGS__, DOC(cls.name))
3939
#define METH_OL(name, cls, rval, args) \
40-
.def(#name, (rval(cls::*)(args)) & cls::name, DOC(cls.name))
40+
.def(#name, (rval (cls::*)(args)) & cls::name, DOC(cls.name))
4141
#define ATTR(name, cls) .def_readwrite(#name, &cls::name, DOC(cls.name))
4242
#define REPR(name) .def("__repr__", repr<name>)
4343
#define EQ(name) \

0 commit comments

Comments
 (0)