From 79ae5fe841b730bcfa705ed879fd2412b859e2cb Mon Sep 17 00:00:00 2001 From: Paul Sardin Date: Tue, 27 Jan 2026 08:07:40 +0100 Subject: [PATCH] Add command to prevent pre commit reorganizing includes --- src/pyhpp_plot/graph_viewer.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pyhpp_plot/graph_viewer.cc b/src/pyhpp_plot/graph_viewer.cc index 5eece43..8127591 100644 --- a/src/pyhpp_plot/graph_viewer.cc +++ b/src/pyhpp_plot/graph_viewer.cc @@ -29,9 +29,16 @@ // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED // OF THE POSSIBILITY OF SUCH DAMAGE. -// Include Qt and HPP headers first (these define Qt's 'slots' macro) +// clang-format off +// Boost.Python must be included before Qt headers to avoid keyword conflicts +// Prevent pre commit from reorganizing includes alphabetically +#include +#include + #include #include +// clang-format on + #include #include