From 2f96369db2bb9dc92eba5b7c82fbcbf9f23869be Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 12 Mar 2024 23:23:28 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 24.1.1 → 24.2.0](https://github.com/psf/black-pre-commit-mirror/compare/24.1.1...24.2.0) - [github.com/pre-commit/mirrors-clang-format: v17.0.6 → v18.1.1](https://github.com/pre-commit/mirrors-clang-format/compare/v17.0.6...v18.1.1) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.9.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ee6fcf1..c0a0424 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,7 +35,7 @@ repos: # Python formatting - repo: https://github.com/psf/black-pre-commit-mirror - rev: 24.1.1 + rev: 24.2.0 hooks: - id: black @@ -55,7 +55,7 @@ repos: # C++ formatting - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v17.0.6 + rev: v18.1.1 hooks: - id: clang-format @@ -70,7 +70,7 @@ repos: # Python type checking - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.8.0' + rev: 'v1.9.0' hooks: - id: mypy # additional_dependencies: [numpy] From 34c8269ab030eaef69d13be1ae1fcccd1273d6e5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 13 Mar 2024 01:52:06 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/core.cpp | 5 +---- src/repr.cpp | 11 ++++------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/core.cpp b/src/core.cpp index 703467b..8def36d 100644 --- a/src/core.cpp +++ b/src/core.cpp @@ -498,10 +498,7 @@ PYBIND11_MODULE(_core, m) { overload_cast(&GenEvent::cross_section), &GenEvent::set_cross_section, DOC(GenEvent.cross_section)) .def_property( - "attributes", - [](GenEvent& self) { - return AttributesView{&self, 0}; - }, + "attributes", [](GenEvent& self) { return AttributesView{&self, 0}; }, [](GenEvent& self, py::dict obj) { auto amv = AttributesView{&self, 0}; py::cast(amv).attr("clear")(); diff --git a/src/repr.cpp b/src/repr.cpp index a88e135..db78e27 100644 --- a/src/repr.cpp +++ b/src/repr.cpp @@ -77,13 +77,10 @@ std::ostream& repr_ostream(std::ostream& os, const HepMC3::GenEvent& x) { // incomplete: // missing comparison of GenHeavyIon, GenPdfInfo, GenCrossSection - os << ""; return os; }