diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index e20bf347c..27e1a18ba 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -88,7 +88,7 @@ jobs: ./rdev.sh ci check-tag - name: Install wpiformat - run: python -m pip install wpiformat==2026.64 + run: python -m pip install wpiformat==2026.71 - name: Run wpiformat run: wpiformat diff --git a/.wpiformat b/.wpiformat index 3aefecb3e..04d7ef4f7 100644 --- a/.wpiformat +++ b/.wpiformat @@ -1,3 +1,13 @@ +cHeaderFileInclude { + _c\.h$ +} + +cppHeaderFileInclude { + (?>> m_values; - std::vector< - std::pair>> + std::vector>> m_complex; std::vector> m_nativeComplex; }; diff --git a/subprojects/robotpy-tunables/tunables/src/rpy/PyTunable.h b/subprojects/robotpy-tunables/tunables/src/rpy/PyTunable.h index bb63e718c..daa1d6c4c 100644 --- a/subprojects/robotpy-tunables/tunables/src/rpy/PyTunable.h +++ b/subprojects/robotpy-tunables/tunables/src/rpy/PyTunable.h @@ -19,15 +19,13 @@ namespace wpi::tunables::python { using TunableVariant = std::variant, - wpi::tunables::Tunable, - WPyStructInfo>>; + wpi::tunables::Tunable, WPyStructInfo>>; class PyTunable : public std::enable_shared_from_this { public: @@ -52,8 +50,7 @@ class PyTunable : public std::enable_shared_from_this { template static constexpr bool IsStructCachedValue = - std::same_as || - std::same_as>; + std::same_as || std::same_as>; static std::vector PackStructValue(const WPyStruct& value, const WPyStructInfo& info); @@ -71,14 +68,15 @@ class PyTunable : public std::enable_shared_from_this { void SetCached(pybind11::handle value); void SetCachedIfChanged(pybind11::handle value); std::optional> PackCachedStructData() const; - wpi::tunables::TunableConfig MakeConfig( - bool robust, bool isMutable, pybind11::handle properties, - std::string typeString, bool alwaysGet); - TunableVariant MakeValue(pybind11::handle value, bool robust, - bool isMutable, pybind11::object valueType, + wpi::tunables::TunableConfig MakeConfig(bool robust, bool isMutable, + pybind11::handle properties, + std::string typeString, + bool alwaysGet); + TunableVariant MakeValue(pybind11::handle value, bool robust, bool isMutable, + pybind11::object valueType, pybind11::object elementType, - pybind11::object properties, - std::string typeString, bool alwaysGet); + pybind11::object properties, std::string typeString, + bool alwaysGet); pybind11::object m_getter; pybind11::object m_setter; diff --git a/subprojects/robotpy-tunables/tunables/src/rpy/PyTunableTable.h b/subprojects/robotpy-tunables/tunables/src/rpy/PyTunableTable.h index 610fd1112..532c5df87 100644 --- a/subprojects/robotpy-tunables/tunables/src/rpy/PyTunableTable.h +++ b/subprojects/robotpy-tunables/tunables/src/rpy/PyTunableTable.h @@ -19,16 +19,16 @@ class PyTunableTable { std::string GetPath() const; PyTunableTable GetTable(std::string_view name); bool Publish(std::string_view name, pybind11::object value); - std::shared_ptr Add( - std::string_view name, pybind11::object value, - pybind11::object valueType, pybind11::object elementType, bool robust, - bool isMutable, pybind11::object onTune, pybind11::object properties, - std::string typeString); + std::shared_ptr Add(std::string_view name, pybind11::object value, + pybind11::object valueType, + pybind11::object elementType, bool robust, + bool isMutable, pybind11::object onTune, + pybind11::object properties, + std::string typeString); std::shared_ptr PublishValue( - std::string_view name, pybind11::object getter, - pybind11::object setter, pybind11::object valueType, - pybind11::object elementType, bool robust, bool isMutable, - pybind11::object properties, std::string typeString); + std::string_view name, pybind11::object getter, pybind11::object setter, + pybind11::object valueType, pybind11::object elementType, bool robust, + bool isMutable, pybind11::object properties, std::string typeString); void Remove(std::string_view name); private: