From 27a1cfcb123d14da8b74f0caaa39c8290059cf64 Mon Sep 17 00:00:00 2001 From: Sam Freund Date: Fri, 15 Aug 2025 21:05:54 -0500 Subject: [PATCH] Bump wpiformat to 2025.34 (#2066) --- .github/workflows/lint-format.yml | 2 +- .../constrained_solvepnp/wrap/casadi_wrapper.cpp | 10 ++++------ .../aimandrange/tests/pyfrc_test.py | 4 ++-- .../aimattarget/tests/pyfrc_test.py | 4 ++-- photonlib-python-examples/poseest/tests/pyfrc_test.py | 4 ++-- 5 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/lint-format.yml b/.github/workflows/lint-format.yml index ac24ea5a1..e70395704 100644 --- a/.github/workflows/lint-format.yml +++ b/.github/workflows/lint-format.yml @@ -31,7 +31,7 @@ jobs: with: python-version: 3.11 - name: Install wpiformat - run: pip3 install wpiformat==2025.33 + run: pip3 install wpiformat==2025.34 - name: Run run: wpiformat - name: Check output diff --git a/photon-targeting/src/main/native/cpp/photon/constrained_solvepnp/wrap/casadi_wrapper.cpp b/photon-targeting/src/main/native/cpp/photon/constrained_solvepnp/wrap/casadi_wrapper.cpp index f09b307ed..44b1acd30 100644 --- a/photon-targeting/src/main/native/cpp/photon/constrained_solvepnp/wrap/casadi_wrapper.cpp +++ b/photon-targeting/src/main/native/cpp/photon/constrained_solvepnp/wrap/casadi_wrapper.cpp @@ -66,12 +66,10 @@ struct Problem { }; static std::optional createProblem(int numTags, bool heading_free) { -#define MAKE_P(tags, suffix) \ - Problem { \ - tags, heading_free, calc_J_##tags##_tags_heading_##suffix, \ - calc_gradJ_##tags##_tags_heading_##suffix, \ - calc_hessJ_##tags##_tags_heading_##suffix \ - } +#define MAKE_P(tags, suffix) \ + Problem{tags, heading_free, calc_J_##tags##_tags_heading_##suffix, \ + calc_gradJ_##tags##_tags_heading_##suffix, \ + calc_hessJ_##tags##_tags_heading_##suffix} #define MAKE_CASE(n) \ case n: \ return heading_free ? MAKE_P(n, free) : MAKE_P(n, fixed); diff --git a/photonlib-python-examples/aimandrange/tests/pyfrc_test.py b/photonlib-python-examples/aimandrange/tests/pyfrc_test.py index 235b61fa3..9c6bd8677 100644 --- a/photonlib-python-examples/aimandrange/tests/pyfrc_test.py +++ b/photonlib-python-examples/aimandrange/tests/pyfrc_test.py @@ -1,4 +1,4 @@ """ - This test module imports tests that come with pyfrc, and can be used - to test basic functionality of just about any robot. +This test module imports tests that come with pyfrc, and can be used +to test basic functionality of just about any robot. """ diff --git a/photonlib-python-examples/aimattarget/tests/pyfrc_test.py b/photonlib-python-examples/aimattarget/tests/pyfrc_test.py index 235b61fa3..9c6bd8677 100644 --- a/photonlib-python-examples/aimattarget/tests/pyfrc_test.py +++ b/photonlib-python-examples/aimattarget/tests/pyfrc_test.py @@ -1,4 +1,4 @@ """ - This test module imports tests that come with pyfrc, and can be used - to test basic functionality of just about any robot. +This test module imports tests that come with pyfrc, and can be used +to test basic functionality of just about any robot. """ diff --git a/photonlib-python-examples/poseest/tests/pyfrc_test.py b/photonlib-python-examples/poseest/tests/pyfrc_test.py index 235b61fa3..9c6bd8677 100644 --- a/photonlib-python-examples/poseest/tests/pyfrc_test.py +++ b/photonlib-python-examples/poseest/tests/pyfrc_test.py @@ -1,4 +1,4 @@ """ - This test module imports tests that come with pyfrc, and can be used - to test basic functionality of just about any robot. +This test module imports tests that come with pyfrc, and can be used +to test basic functionality of just about any robot. """