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] 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; }